- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for Errcnt (0.08 sec)
-
src/strconv/strconv_test.go
})) } func TestErrorPrefixes(t *testing.T) { _, errInt := Atoi("INVALID") _, errBool := ParseBool("INVALID") _, errFloat := ParseFloat("INVALID", 64) _, errInt64 := ParseInt("INVALID", 10, 64) _, errUint64 := ParseUint("INVALID", 10, 64) vectors := []struct { err error // Input error want string // Function name wanted }{ {errInt, "Atoi"}, {errBool, "ParseBool"}, {errFloat, "ParseFloat"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 20:29:22 UTC 2022 - 4.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_gofile_in_goroot.txt
stdout '^fmt$' ! go list . stderr '^GOROOT/src is not an importable package$' # In GOPATH mode, 'go list ./...' should synthesize a legacy GOPATH-mode path — # not a standard-library or empty path — for the errant package. env GO111MODULE=off go list ./... stdout -count=2 '^.+$' # Both 'fmt' and GOROOT/src should be listed. stdout '^fmt$' [!GOOS:windows] stdout ^_$WORK/goroot/src$
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.7K bytes - Viewed (0)