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

Function Test_bytesToHexString

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

Source from the content-addressed store, hash-verified

182}
183
184func Test_bytesToHexString(t *testing.T) {
185 type args struct {
186 val []byte
187 }
188 tests := []struct {
189 name string
190 args args
191 want string
192 }{
193 {
194 name: "Test bytes",
195 args: args{
196 val: []byte("bytes"),
197 },
198 want: "0x6279746573",
199 },
200 }
201 for _, tt := range tests {
202 t.Run(tt.name, func(t *testing.T) {
203 if got := bytesToHexString(tt.args.val); got != tt.want {
204 t.Errorf("bytesToHexString() = %v, want %v", got, tt.want)
205 }
206 })
207 }
208}
209
210func Test_verifySuccess(t *testing.T) {
211 type args struct {

Callers

nothing calls this directly

Calls 1

bytesToHexStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…