Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for checkSize (0.29 sec)

  1. src/testing/fstest/testfs.go

    		return strings.Compare(fa[1]+" "+fb[0], fb[1]+" "+fa[0])
    	})
    
    	t.errorf("%s: diff %s:\n\t%s", dir, desc, strings.Join(diffs, "\n\t"))
    }
    
    // checkFile checks that basic file reading works correctly.
    func (t *fsTester) checkFile(file string) {
    	t.files = append(t.files, file)
    
    	// Read entire file.
    	f, err := t.fsys.Open(file)
    	if err != nil {
    		t.errorf("%s: Open: %w", file, err)
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/gcimporter_test.go

    			compile(t, rootDir, entry.Name(), filepath.Join(tmpdir, "testdata"), nil, filename)
    			pkgName := strings.TrimSuffix(entry.Name(), ".go")
    			imported := importPkg(t, "./testdata/"+pkgName, tmpdir)
    			checked := checkFile(t, filename, src)
    
    			seen := make(map[string]bool)
    			for _, name := range imported.Scope().Names() {
    				if !token.IsExported(name) {
    					continue // ignore synthetic names like .inittask and .dict.*
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/time/format_test.go

    	for _, test := range rubyTests {
    		time, err := Parse(test.format, test.value)
    		if err != nil {
    			t.Errorf("%s error: %v", test.name, err)
    		} else {
    			checkTime(time, &test, t)
    		}
    	}
    }
    
    func checkTime(time Time, test *ParseTest, t *testing.T) {
    	// The time should be Thu Feb  4 21:00:57 PST 2010
    	if test.yearSign >= 0 && test.yearSign*time.Year() != 2010 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top