- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 81 for parseable (0.48 sec)
-
src/internal/trace/testtrace/format.go
package testtrace import ( "bytes" "fmt" "internal/trace/raw" "internal/txtar" "io" ) // ParseFile parses a test file generated by the testgen package. func ParseFile(testPath string) (io.Reader, *Expectation, error) { ar, err := txtar.ParseFile(testPath) if err != nil { return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err) } if len(ar.Files) != 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/schema/flatbuffer_compatibility_test.cc
// Parse the schemas flatbuffers::Parser base_parser, current_parser; std::vector<const char *> include_directories; ASSERT_TRUE(ParseFile(&base_parser, base_filename, base_contents)); ASSERT_TRUE(ParseFile(¤t_parser, current_filename, current_contents)); // Check that the schemas conform and fail if they don't auto err = current_parser.ConformTo(base_parser); if (!err.empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 14:28:27 UTC 2024 - 3.1K bytes - Viewed (0) -
src/go/ast/example_test.go
src := ` package p const c = 1.0 var X = f(3.14)*2 + c ` // Create the AST by parsing src. fset := token.NewFileSet() // positions are relative to fset f, err := parser.ParseFile(fset, "src.go", src, 0) if err != nil { panic(err) } // Inspect the AST and print all identifiers and literals. ast.Inspect(f, func(n ast.Node) bool { var s string switch x := n.(type) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:44:50 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/fix/main.go
return err } file, err := parser.ParseFile(fset, filename, src, parserMode) if err != nil { return err } // Make sure file is in canonical format. // This "fmt" pseudo-fix cannot be disabled. newSrc, err := gofmtFile(file) if err != nil { return err } if !bytes.Equal(newSrc, src) { newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/go/ast/walk_test.go
// bug, this test failed with a runtime panic. src := "package p\ntype T struct {\n\tF int `json:\"f\"` // a field\n}\n" fset := token.NewFileSet() f, err := parser.ParseFile(fset, "", src, 0) if err != nil { panic(err) } for n := range ast.Preorder(f) { if id, ok := n.(*ast.Ident); ok && id.Name == "F" { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:34:10 UTC 2024 - 916 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser_test.go
skip = flag.String("skip", "", "files matching this regular expression are skipped by TestStdLib") ) func TestParse(t *testing.T) { ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) } func TestVerify(t *testing.T) { ast, err := ParseFile(*src_, func(err error) { t.Error(err) }, nil, 0) if err != nil { return // error already reported } verifyPrint(t, *src_, ast) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 16:30:19 UTC 2024 - 12.2K bytes - Viewed (0) -
src/internal/syscall/unix/kernel_version_solaris.go
// Therefore, we use the Version field on Solaris when available. ver := un.Version[:] if runtime.GOOS == "illumos" { // Illumos distributions use different formats without a parsable // and unified pattern for the Version field while Release level // string is guaranteed to be in x.y or x.y.z format regardless of // whether the kernel is Solaris or illumos. ver = un.Release[:] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 3.1K bytes - Viewed (0) -
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/cmd/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go
// setting caused by os.Setenv("GODEBUG"), as happens in // many tests. Therefore any attempt to cache the result // is just incorrect. fset := token.NewFileSet() f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", 0) pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil) _, enabled := pkg.Scope().Lookup("A").Type().(*types.Alias) return enabled
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/c/tf_buffer.cc
} Status BufferToMessage(const TF_Buffer* in, tensorflow::protobuf::MessageLite* out) { if (in == nullptr || !out->ParseFromArray(in->data, in->length)) { return errors::InvalidArgument("Unparseable ", out->GetTypeName(), " proto"); } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 3K bytes - Viewed (0)