aboutsummaryrefslogtreecommitdiff
path: root/internal/feed/nodeop_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-01 07:56:12 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-01 07:56:12 -0500
commit5dbf57134000f5ff2c5c12342ac4439b6d395603 (patch)
treea3a8bb5abcb77d434c18cca61c2c6eba66f7b423 /internal/feed/nodeop_string.go
parent4ab54153c1448b6df9701efcd4b86e63e71c0760 (diff)
downloadcvez-5dbf57134000f5ff2c5c12342ac4439b6d395603.tar.bz2
cvez-5dbf57134000f5ff2c5c12342ac4439b6d395603.zip
internal/feed: add nodeop tests
Diffstat (limited to 'internal/feed/nodeop_string.go')
-rw-r--r--internal/feed/nodeop_string.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/internal/feed/nodeop_string.go b/internal/feed/nodeop_string.go
new file mode 100644
index 0000000..2c120d4
--- /dev/null
+++ b/internal/feed/nodeop_string.go
@@ -0,0 +1,24 @@
+// Code generated by "stringer -linecomment -type=NodeOp"; 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[OrOp-0]
+ _ = x[AndOp-1]
+}
+
+const _NodeOp_name = "ORAND"
+
+var _NodeOp_index = [...]uint8{0, 2, 5}
+
+func (i NodeOp) String() string {
+ if i >= NodeOp(len(_NodeOp_index)-1) {
+ return "NodeOp(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _NodeOp_name[_NodeOp_index[i]:_NodeOp_index[i+1]]
+}