- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for checkError (0.39 sec)
-
src/go/parser/short_test.go
} func TestValid(t *testing.T) { for _, src := range valids { checkErrors(t, src, src, DeclarationErrors|AllErrors, false) } } // TestSingle is useful to track down a problem with a single short test program. func TestSingle(t *testing.T) { const src = `package p; var _ = T{}` checkErrors(t, src, src, DeclarationErrors|AllErrors, true) } var invalids = []string{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 10.1K bytes - Viewed (0) -
src/go/parser/error_test.go
if len(expected) > 0 { t.Errorf("%d errors not reported:", len(expected)) for pos, msg := range expected { t.Errorf("%s: %s\n", fset.Position(pos), msg) } } } func checkErrors(t *testing.T, filename string, input any, mode Mode, expectErrors bool) { t.Helper() src, err := readSource(filename, input) if err != nil { t.Error(err) return } fset := token.NewFileSet()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 19:47:49 UTC 2022 - 5.9K bytes - Viewed (0) -
src/compress/flate/deflate_test.go
err = zw.Close() if err != nil { t.Fatalf("Second call to close returned error: %s", err) } flushErr = zw.Flush() _, writeErr = zw.Write([]byte("Test")) checkErrors([]error{flushErr, writeErr}, errWriterClosed, t) } func checkErrors(got []error, want error, t *testing.T) { t.Helper() for _, err := range got { if err != want { t.Errorf("Error doesn't match\nWant: %s\nGot: %s", want, got) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 25.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/IvyXmlModuleDescriptorParser.java
this.res = resource; // used for log and date only md = new DefaultModuleDescriptor(XmlModuleDescriptorParser.getInstance(), null); } protected void checkErrors() throws ParseException { if (!errors.isEmpty()) { throw new ParseException(Joiner.on(TextUtil.getPlatformLineSeparator()).join(errors), 0); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 65K bytes - Viewed (0)