MCPcopy Create free account
hub / github.com/apache/dubbo-go-hessian2 / testDecodeJavaSqlTime

Function testDecodeJavaSqlTime

java_sql_time_test.go:64–75  ·  view source on GitHub ↗
(t *testing.T, method string, expected java_sql_time.JavaSqlTime)

Source from the content-addressed store, hash-verified

62}
63
64func testDecodeJavaSqlTime(t *testing.T, method string, expected java_sql_time.JavaSqlTime) {
65 r, e := decodeJavaResponse(method, "", false)
66 if e != nil {
67 t.Errorf("%s: decode fail with error %v", method, e)
68 return
69 }
70 resultSqlTime, ok := r.(java_sql_time.JavaSqlTime)
71 if !ok {
72 t.Errorf("got error type:%v", r)
73 }
74 assert.Equal(t, resultSqlTime.GetTime().UnixNano(), expected.GetTime().UnixNano())
75}
76
77// test local time between go and go
78// go encode

Callers 1

TestJavaSqlTimeDecodeFunction · 0.85

Calls 2

decodeJavaResponseFunction · 0.85
GetTimeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…