mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-17 18:31:02 +02:00
move implementation to internal/
directory (#828)
This commit is contained in:
committed by
GitHub
parent
b9b9ad10cf
commit
908807bd59
21
internal/rpc/dataconn/frameconn/frameconn_test.go
Normal file
21
internal/rpc/dataconn/frameconn/frameconn_test.go
Normal file
@ -0,0 +1,21 @@
|
||||
package frameconn
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestIsPublicFrameType(t *testing.T) {
|
||||
for i := uint32(0); i < 256; i++ {
|
||||
i := i
|
||||
t.Run(fmt.Sprintf("^%d", i), func(t *testing.T) {
|
||||
assert.False(t, IsPublicFrameType(^i))
|
||||
})
|
||||
}
|
||||
assert.True(t, IsPublicFrameType(0))
|
||||
assert.True(t, IsPublicFrameType(1))
|
||||
assert.True(t, IsPublicFrameType(255))
|
||||
assert.False(t, IsPublicFrameType(rstFrameType))
|
||||
}
|
Reference in New Issue
Block a user