- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 95 for parseable (0.13 sec)
-
cmd/net_test.go
sortedIPList: []string{"127.0.0.1"}, }, // Non parsable ip is assumed to be hostame and gets preserved // as the left most elements, regardless of IP based sorting. { ipList: []string{"hostname", "127.0.0.1", "192.168.1.106"}, sortedIPList: []string{"hostname", "192.168.1.106", "127.0.0.1"}, }, // Non parsable ip is assumed to be hostname, with a mixed input of ip and hostname.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
} } }) }) } func walkCodes(t *testing.T, f func(string, int, *ast.ValueSpec)) { t.Helper() fset := token.NewFileSet() file, err := parser.ParseFile(fset, "codes.go", nil, parser.ParseComments) if err != nil { t.Fatal(err) } conf := Config{Importer: importer.Default()} info := &Info{ Types: make(map[ast.Expr]TypeAndValue),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
src/internal/diff/diff_test.go
files, _ := filepath.Glob("testdata/*.txt") if len(files) == 0 { t.Fatalf("no testdata") } for _, file := range files { t.Run(filepath.Base(file), func(t *testing.T) { a, err := txtar.ParseFile(file) if err != nil { t.Fatal(err) } if len(a.Files) != 3 || a.Files[2].Name != "diff" { t.Fatalf("%s: want three files, third named \"diff\"", file) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 16:56:29 UTC 2022 - 1.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/language/tags.go
t, err := c.Parse(s) if err != nil { panic(err) } return t } // MustParseBase is like ParseBase, but panics if the given base cannot be parsed. // It simplifies safe initialization of Base values. func MustParseBase(s string) Base { b, err := ParseBase(s) if err != nil { panic(err) } return b } // MustParseScript is like ParseScript, but panics if the given script cannot be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 5.4K bytes - Viewed (0) -
src/go/doc/example_test.go
fset := token.NewFileSet() astFile, err := parser.ParseFile(fset, filename, nil, parser.ParseComments) if err != nil { t.Fatal(err) } goldenFilename := strings.TrimSuffix(filename, ".go") + ".golden" archive, err := txtar.ParseFile(goldenFilename) if err != nil { t.Fatal(err) } golden := map[string]string{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 16:17:51 UTC 2022 - 9.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInteger.java
/** * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed as * an unsigned {@code int} value. * * @throws NumberFormatException if the string does not contain a parsable unsigned {@code int} * value */ public static UnsignedInteger valueOf(String string) { return valueOf(string, 10); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 18:45:50 UTC 2023 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedInteger.java
/** * Returns an {@code UnsignedInteger} holding the value of the specified {@code String}, parsed as * an unsigned {@code int} value. * * @throws NumberFormatException if the string does not contain a parsable unsigned {@code int} * value */ public static UnsignedInteger valueOf(String string) { return valueOf(string, 10); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 23 18:45:50 UTC 2023 - 8.3K bytes - Viewed (0) -
src/internal/txtar/archive.go
var buf bytes.Buffer buf.Write(fixNL(a.Comment)) for _, f := range a.Files { fmt.Fprintf(&buf, "-- %s --\n", f.Name) buf.Write(fixNL(f.Data)) } return buf.Bytes() } // ParseFile parses the named file as an archive. func ParseFile(file string) (*Archive, error) { data, err := os.ReadFile(file) if err != nil { return nil, err } return Parse(data), nil } // Parse parses the serialized form of an Archive.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 4.2K bytes - Viewed (0) -
src/go/doc/example_internal_test.go
import ( "a" _ "b" _ "c" "d" )`, want: []string{"a", "b", "c"}, }, } { t.Run(test.name, func(t *testing.T) { fset := token.NewFileSet() file, err := parser.ParseFile(fset, "test.go", strings.NewReader(test.in), parser.ParseComments) if err != nil { t.Fatal(err) } imps := findImportGroupStarts1(file.Imports) got := make([]string, len(imps))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 14:22:16 UTC 2022 - 1.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLong.java
/** * Returns an {@code UnsignedLong} holding the value of the specified {@code String}, parsed as an * unsigned {@code long} value. * * @throws NumberFormatException if the string does not contain a parsable unsigned {@code long} * value */ @CanIgnoreReturnValue public static UnsignedLong valueOf(String string) { return valueOf(string, 10); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Apr 22 13:09:25 UTC 2021 - 8.9K bytes - Viewed (0)