diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-01 08:25:05 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-01 08:25:05 -0500 |
commit | e66d260451c7be2129b3820069042d0ef4c57665 (patch) | |
tree | 94981d739548424d3ee87188fca9f331f0e2a645 /internal/feed/v3attackcomplexity_string.go | |
parent | a308b1046b3001950945abe35b20b284865958e7 (diff) | |
download | cvez-e66d260451c7be2129b3820069042d0ef4c57665.tar.bz2 cvez-e66d260451c7be2129b3820069042d0ef4c57665.zip |
internal/feed: add v3attackcomplexity tests
Diffstat (limited to 'internal/feed/v3attackcomplexity_string.go')
-rw-r--r-- | internal/feed/v3attackcomplexity_string.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/feed/v3attackcomplexity_string.go b/internal/feed/v3attackcomplexity_string.go new file mode 100644 index 0000000..12110c8 --- /dev/null +++ b/internal/feed/v3attackcomplexity_string.go @@ -0,0 +1,25 @@ +// Code generated by "stringer -linecomment -type=V3AttackComplexity"; DO NOT EDIT. + +package feed + +import "strconv" + +func _() { + // An "invalid array index" compiler error signifies that the constant values have changed. + // Re-run the stringer command to generate them again. + var x [1]struct{} + _ = x[V3ACLow-0] + _ = x[V3ACMedium-1] + _ = x[V3ACHigh-2] +} + +const _V3AttackComplexity_name = "LOWMEDIUMHIGH" + +var _V3AttackComplexity_index = [...]uint8{0, 3, 9, 13} + +func (i V3AttackComplexity) String() string { + if i >= V3AttackComplexity(len(_V3AttackComplexity_index)-1) { + return "V3AttackComplexity(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _V3AttackComplexity_name[_V3AttackComplexity_index[i]:_V3AttackComplexity_index[i+1]] +} |