wmnsk / go-pfcp

PFCP (Packet Forwarding Control Protocol) in pure Go.
MIT License
125 stars 56 forks source link

Fix decoding of GateStatusDL #91

Closed ccascone closed 2 years ago

ccascone commented 2 years ago

And also add new tests to cover all possible encoding/decoding combinations.

Test failures without the fix:

➜  go-pfcp git:(fix-gate-status-decode) ✗ go test ie/ie_uint8_test.go 
--- FAIL: TestUint8IEs (0.01s)
    --- FAIL: TestUint8IEs/GateStatus/ClosedOpen/GateStatusDL (0.00s)
        ie_uint8_test.go:1245:   uint8(
            -   4,
            +   0,
              )

    --- FAIL: TestUint8IEs/GateStatus/ClosedClosed/GateStatusDL (0.00s)
        ie_uint8_test.go:1245:   uint8(
            -   5,
            +   1,
              )
wmnsk commented 2 years ago

tagged v0.0.13.