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

Function Test_String2Int_2

framework/convert/convert_test.go:29–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func Test_String2Int_2(t *testing.T) {
30 str := "1234567890ssss"
31 b, e := String2Int(str)
32
33 t.Log(str, " String to Int: ", b)
34 test.NotNil(t, e)
35 test.Equal(t, 0, b)
36}
37
38func Test_Int2String_1(t *testing.T) {
39 vint := 9876543210

Callers

nothing calls this directly

Calls 3

NotNilFunction · 0.92
EqualFunction · 0.92
String2IntFunction · 0.85

Tested by

no test coverage detected