forked from ti-mo/conntrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum_test.go
32 lines (29 loc) · 857 Bytes
/
enum_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package conntrack
import (
"fmt"
"testing"
)
// Create references to unused enums (deprecated or other) to avoid tripping go-unused.
// These consts cannot be removed as they would break the iota sequence.
func TestUnusedEnums(t *testing.T) {
_ = fmt.Sprint(
ctGetCtrZero, // TODO(timo): Could be added as feature
ctGetDying, // Narrow time window for query
ctGetUnconfirmed, // Narrow time window for query
ctExpGet, // Haven't figured out how to create expects, so there's nothing to Get()
ctaNatSrc, // Deprecated
ctaNatDst, // Deprecated
ctaSecMark, // Deprecated
// All the below is unused
ctaTupleUnspec,
ctaProtoUnspec,
ctaIPUnspec,
ctaTimestampPad,
ctaProtoInfoDCCPPad,
ctaExpectUnspec,
ctaExpectNATUnspec,
ctaStatsUnspec,
ctaStatsGlobalUnspec,
ctaStatsExpUnspec,
)
}