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

Function Test_String2Int_1

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

Source from the content-addressed store, hash-verified

18}
19
20func Test_String2Int_1(t *testing.T) {
21 str := "1234567890"
22 b, e := String2Int(str)
23
24 t.Log(str, " String to Int: ", b)
25 test.Nil(t, e)
26 test.Equal(t, 1234567890, b)
27}
28
29func Test_String2Int_2(t *testing.T) {
30 str := "1234567890ssss"

Callers

nothing calls this directly

Calls 3

NilFunction · 0.92
EqualFunction · 0.92
String2IntFunction · 0.85

Tested by

no test coverage detected