Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mustExist (0.09 sec)

  1. src/cmd/go/go_test.go

    		tg.t.Fatalf("internal testsuite error: path(%q) with no tempdir", name)
    	}
    	if name == "." {
    		return tg.tempdir
    	}
    	return filepath.Join(tg.tempdir, name)
    }
    
    // mustExist fails if path does not exist.
    func (tg *testgoData) mustExist(path string) {
    	tg.t.Helper()
    	if _, err := os.Stat(path); err != nil {
    		if os.IsNotExist(err) {
    			tg.t.Fatalf("%s does not exist but should", path)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top