Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for compareAPI (0.17 sec)

  1. src/cmd/api/api_test.go

    			},
    			ok:  false,
    			out: "+pkg syscall, type RawSockaddrInet6 struct\n",
    		},
    	}
    	for _, tt := range tests {
    		buf := new(strings.Builder)
    		gotOK := compareAPI(buf, tt.features, tt.required, tt.exception)
    		if gotOK != tt.ok {
    			t.Errorf("%s: ok = %v; want %v", tt.name, gotOK, tt.ok)
    		}
    		if got := buf.String(); got != tt.out {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/api/main_test.go

    	}
    	exception := fileFeatures(filepath.Join(testenv.GOROOT(t), "api/except.txt"), false)
    
    	if exitCode == 1 {
    		t.Errorf("API database problems found")
    	}
    	if !compareAPI(bw, features, required, exception) {
    		t.Errorf("API differences found")
    	}
    }
    
    // export emits the exported package features.
    func (w *Walker) export(pkg *apiPackage) {
    	if verbose {
    		log.Println(pkg)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top