Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestReadFailuresIgnored (0.26 sec)

  1. src/cmd/go/internal/imports/read_test.go

    func TestReadFailures(t *testing.T) {
    	// Errors should be reported (true arg to readImports).
    	testRead(t, readFailuresTests, func(r io.Reader) ([]byte, error) { return ReadImports(r, true, nil) })
    }
    
    func TestReadFailuresIgnored(t *testing.T) {
    	// Syntax errors should not be reported (false arg to readImports).
    	// Instead, entire file should be the output and no error.
    	// Convert tests not to return syntax errors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  2. src/go/build/read_test.go

    	{
    		`package p; import ("`,
    		"syntax error",
    	},
    	{
    		`package p; import ("x`,
    		"syntax error",
    	},
    	{
    		`package p; import ("x"`,
    		"syntax error",
    	},
    }
    
    func TestReadFailuresIgnored(t *testing.T) {
    	// Syntax errors should not be reported (false arg to readImports).
    	// Instead, entire file should be the output and no error.
    	// Convert tests not to return syntax errors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 6K bytes
    - Viewed (0)
Back to top