MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / Test_bytesToInt32

Function Test_bytesToInt32

client/utils_test.go:28–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func Test_bytesToInt32(t *testing.T) {
29 type args struct {
30 bys []byte
31 }
32 tests := []struct {
33 name string
34 args args
35 want int32
36 }{
37 {
38 name: "",
39 args: args{
40 bys: int32ToBytes(65535),
41 },
42 want: 65535,
43 },
44 }
45 for _, tt := range tests {
46 t.Run(tt.name, func(t *testing.T) {
47 if got := bytesToInt32(tt.args.bys); got != tt.want {
48 t.Errorf("bytesToInt32() = %v, want %v", got, tt.want)
49 }
50 })
51 }
52}
53
54func Test_bytesToInt64(t *testing.T) {
55 type args struct {

Callers

nothing calls this directly

Calls 2

int32ToBytesFunction · 0.85
bytesToInt32Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…