MCPcopy
hub / github.com/google/gopacket / testFSMFactory

Struct testFSMFactory

reassembly/tcpassembly_test.go:1244–1247  ·  view source on GitHub ↗

* * FSM tests */ * For FSM: bump nb on accepted packet */

Source from the content-addressed store, hash-verified

1242 */
1243/* For FSM: bump nb on accepted packet */
1244type testFSMFactory struct {
1245 nb int
1246 fsm TCPSimpleFSM
1247}
1248
1249func (t *testFSMFactory) New(a, b gopacket.Flow, tcp *layers.TCP, ac AssemblerContext) Stream {
1250 return t

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected