aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/v2accessvector_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-01 13:57:27 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-01 13:57:27 -0500
commit5352b6155f7baa772ee676b505cc429976f7d854 (patch)
tree2e34c95bbf8bbe5856de078dc80082cf612ef496 /internal/feed/v2accessvector_string.go
parent806a74bdff6cf2f014bb93d01d84611c9ef26e04 (diff)
downloadcvez-5352b6155f7baa772ee676b505cc429976f7d854.tar.bz2
cvez-5352b6155f7baa772ee676b505cc429976f7d854.zip
internal/feed: add v2accessvector, v2accessvector tests
Diffstat (limited to 'internal/feed/v2accessvector_string.go')
-rw-r--r--internal/feed/v2accessvector_string.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/internal/feed/v2accessvector_string.go b/internal/feed/v2accessvector_string.go
new file mode 100644
index 0000000..bf354fc
--- /dev/null
+++ b/internal/feed/v2accessvector_string.go
@@ -0,0 +1,25 @@
+// Code generated by "stringer -linecomment -type=V2AccessVector"; 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[V2AVAdjacentNetwork-0]
+ _ = x[V2AVLocal-1]
+ _ = x[V2AVNetwork-2]
+}
+
+const _V2AccessVector_name = "ADJACENT_NETWORKLOCALNETWORK"
+
+var _V2AccessVector_index = [...]uint8{0, 16, 21, 28}
+
+func (i V2AccessVector) String() string {
+ if i >= V2AccessVector(len(_V2AccessVector_index)-1) {
+ return "V2AccessVector(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _V2AccessVector_name[_V2AccessVector_index[i]:_V2AccessVector_index[i+1]]
+}