Skip to content

Commit

Permalink
stale access
Browse files Browse the repository at this point in the history
  • Loading branch information
Elazar Gershuni committed Mar 3, 2024
1 parent d5bee5c commit b2cfea4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/connectionset/statefulness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ func allButTCP() *ConnectionSet {

type statefulnessTest struct {
name string
srcToDst *connectionset.ConnectionSet
dstToSrc *connectionset.ConnectionSet
srcToDst *ConnectionSet
dstToSrc *ConnectionSet
// expectedIsStateful represents the expected IsStateful computed value for srcToDst,
// which should be either StatefulTrue or StatefulFalse, given the input dstToSrc connection.
// the computation applies only to the TCP protocol within those connections.
expectedIsStateful int
// expectedStatefulConn represents the subset from srcToDst which is not related to the "non-stateful" mark (*) on the srcToDst connection,
// the stateless part for TCP is srcToDst.Subtract(statefuleConn)
expectedStatefulConn *connectionset.ConnectionSet
expectedStatefulConn *ConnectionSet
}

var testCasesStatefulness = []statefulnessTest{
Expand All @@ -54,7 +54,7 @@ var testCasesStatefulness = []statefulnessTest{
},
{
name: "first_all_cons_second_tcp_with_ports",
srcToDst: connectionset.NewConnectionSet(true), // all connections
srcToDst: NewConnectionSet(true), // all connections

Check failure on line 57 in pkg/connectionset/statefulness_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofmt`-ed with `-s` (gofmt)
dstToSrc: newTCPConn(80, 80, MinPort, MaxPort), // TCP , src-ports: 80, dst-ports: all

// there is a subset of the tcp connection which is not stateful
Expand Down

0 comments on commit b2cfea4

Please sign in to comment.