MCPcopy Create free account
hub / github.com/devfeel/dotweb / Test_String2Int64_1

Function Test_String2Int64_1

framework/convert/convert_test.go:46–53  ·  view source on GitHub ↗

String2Int64

(t *testing.T)

Source from the content-addressed store, hash-verified

44
45//String2Int64
46func Test_String2Int64_1(t *testing.T) {
47 str := "0200000010"
48 b, e := String2Int64(str)
49
50 t.Log(str, "String to Int64: ", b)
51 test.Nil(t, e)
52 test.Equal(t, int64(200000010), b)
53}
54
55//String2Int64
56func Test_String2Int64_2(t *testing.T) {

Callers

nothing calls this directly

Calls 3

NilFunction · 0.92
EqualFunction · 0.92
String2Int64Function · 0.85

Tested by

no test coverage detected