diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-01 12:31:05 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-01 12:31:05 -0500 |
commit | f4f3bf7f03e790b5d98004de3498c102bdac50ad (patch) | |
tree | a856870ae1f33c89715d7930a0908b04e0aa47d2 /internal/feed/v3scope_string.go | |
parent | 00206f4dfbb55cc56d24bdfd9f015e912120c72c (diff) | |
download | cvez-f4f3bf7f03e790b5d98004de3498c102bdac50ad.tar.bz2 cvez-f4f3bf7f03e790b5d98004de3498c102bdac50ad.zip |
internal/feed: add v3scope tests
Diffstat (limited to 'internal/feed/v3scope_string.go')
-rw-r--r-- | internal/feed/v3scope_string.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/feed/v3scope_string.go b/internal/feed/v3scope_string.go new file mode 100644 index 0000000..982cead --- /dev/null +++ b/internal/feed/v3scope_string.go @@ -0,0 +1,24 @@ +// Code generated by "stringer -linecomment -type=V3Scope"; 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[V3ScopeChanged-0] + _ = x[V3ScopeUnchanged-1] +} + +const _V3Scope_name = "CHANGEDUNCHANGED" + +var _V3Scope_index = [...]uint8{0, 7, 16} + +func (i V3Scope) String() string { + if i >= V3Scope(len(_V3Scope_index)-1) { + return "V3Scope(" + strconv.FormatInt(int64(i), 10) + ")" + } + return _V3Scope_name[_V3Scope_index[i]:_V3Scope_index[i+1]] +} |