Skip to content

cvss: add additional check for malformed input

Codecov / codecov/patch succeeded May 10, 2024 in 0s

76.35% of diff hit (target 55.76%)

View this Pull Request on Codecov

76.35% of diff hit (target 55.76%)

Annotations

Check warning on line 141 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L139-L141

Added lines #L139 - L141 were not covered by tests

Check warning on line 155 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L155

Added line #L155 was not covered by tests

Check warning on line 189 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L189

Added line #L189 was not covered by tests

Check warning on line 212 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L212

Added line #L212 was not covered by tests

Check warning on line 246 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L246

Added line #L246 was not covered by tests

Check warning on line 273 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L273

Added line #L273 was not covered by tests

Check warning on line 291 in toolkit/types/cvss/cvss.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss.go#L291

Added line #L291 was not covered by tests

Check warning on line 42 in toolkit/types/cvss/cvss_v2.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v2.go#L42

Added line #L42 was not covered by tests

Check warning on line 126 in toolkit/types/cvss/cvss_v2.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v2.go#L126

Added line #L126 was not covered by tests

Check warning on line 156 in toolkit/types/cvss/cvss_v2.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v2.go#L156

Added line #L156 was not covered by tests

Check warning on line 160 in toolkit/types/cvss/cvss_v2.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v2.go#L160

Added line #L160 was not covered by tests

Check warning on line 59 in toolkit/types/cvss/cvss_v3.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v3.go#L59

Added line #L59 was not covered by tests

Check warning on line 62 in toolkit/types/cvss/cvss_v3.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v3.go#L62

Added line #L62 was not covered by tests

Check warning on line 108 in toolkit/types/cvss/cvss_v3.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v3.go#L108

Added line #L108 was not covered by tests

Check warning on line 112 in toolkit/types/cvss/cvss_v3.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v3.go#L112

Added line #L112 was not covered by tests

Check warning on line 38 in toolkit/types/cvss/cvss_v4.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v4.go#L38

Added line #L38 was not covered by tests

Check warning on line 152 in toolkit/types/cvss/cvss_v4.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v4.go#L152

Added line #L152 was not covered by tests

Check warning on line 156 in toolkit/types/cvss/cvss_v4.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v4.go#L156

Added line #L156 was not covered by tests

Check warning on line 160 in toolkit/types/cvss/cvss_v4.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

toolkit/types/cvss/cvss_v4.go#L160

Added line #L160 was not covered by tests