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

Function Test_bytesToInt64

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

Source from the content-addressed store, hash-verified

52}
53
54func Test_bytesToInt64(t *testing.T) {
55 type args struct {
56 bys []byte
57 }
58 tests := []struct {
59 name string
60 args args
61 want int64
62 }{
63 {
64 name: "",
65 args: args{
66 bys: int64ToBytes(1607237683018),
67 },
68 want: 1607237683018,
69 },
70 }
71 for _, tt := range tests {
72 t.Run(tt.name, func(t *testing.T) {
73 if got := bytesToInt64(tt.args.bys); got != tt.want {
74 t.Errorf("bytesToInt64() = %v, want %v", got, tt.want)
75 }
76 })
77 }
78}
79
80func Test_int32ToString(t *testing.T) {
81 type args struct {

Callers

nothing calls this directly

Calls 2

int64ToBytesFunction · 0.85
bytesToInt64Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…