Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 275 for wabt (0.32 sec)

  1. src/net/dnsclient_unix_test.go

    	if err != nil {
    		t.Fatal("LookupTXT failed:", err)
    	}
    	if want := 2; len(txt) != want {
    		t.Fatalf("len(txt), got %d, want %d", len(txt), want)
    	}
    	if want := "string1 string2"; txt[0] != want {
    		t.Errorf("txt[0], got %q, want %q", txt[0], want)
    	}
    	if want := "onestring"; txt[1] != want {
    		t.Errorf("txt[1], got %q, want %q", txt[1], want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    			}
    		}
    		res = append(res, stk)
    	}
    	return res
    }
    
    func containsStack(got [][]string, want []string) bool {
    	for _, stk := range got {
    		if len(stk) < len(want) {
    			continue
    		}
    		for i, f := range want {
    			if f != stk[i] {
    				break
    			}
    			if i == len(want)-1 {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/os/os_test.go

    		}
    		if g, e := len(de), want; g != e {
    			t.Errorf("ReadDir of %d got %d files, want %d", n, g, e)
    		}
    	}
    
    	readdirnamesExpect := func(n, want int, wantErr error) {
    		t.Helper()
    		fi, err := d.Readdirnames(n)
    		if err != wantErr {
    			t.Fatalf("Readdirnames of %d got error %v, want %v", n, err, wantErr)
    		}
    		if g, e := len(fi), want; g != e {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    		// through reactors, in contrast to the types above.
    		objs []apiruntime.Object
    
    		prepare prepare
    		want    want
    		disable bool
    	}{
    		"empty": {
    			pod: st.MakePod().Name("foo").Namespace("default").Obj(),
    			want: want{
    				prefilter: result{
    					status: framework.NewStatus(framework.Skip),
    				},
    				postfilter: result{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  5. src/time/time_test.go

    	}
    
    	for _, tt := range tests {
    		want := tt.want
    		b, err := tt.time.MarshalJSON()
    		switch {
    		case b != nil:
    			t.Errorf("(%v).MarshalText() = %q, want nil", tt.time, b)
    		case err == nil || err.Error() != want:
    			t.Errorf("(%v).MarshalJSON() error = %v, want %v", tt.time, err, want)
    		}
    
    		want = strings.ReplaceAll(tt.want, "JSON", "Text")
    		b, err = tt.time.MarshalText()
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. src/net/http/client_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		if res.StatusCode != tt.want {
    			t.Errorf("POST %s: status code = %d; want %d", tt.suffix, res.StatusCode, tt.want)
    		}
    	}
    	log.Lock()
    	got := log.String()
    	log.Unlock()
    
    	got = strings.TrimSpace(got)
    	want = strings.TrimSpace(want)
    
    	if got != want {
    		got, want, lines := removeCommonLines(got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. pkg/controller/disruption/disruption_test.go

    					t.Error("Expected scale, but got nil")
    				}
    				return
    			}
    
    			if got, want := controllerAndScale.scale, tc.expectedScale; got != want {
    				t.Errorf("Expected scale %d, but got %d", want, got)
    			}
    
    			if got, want := controllerAndScale.UID, tc.uid; got != want {
    				t.Errorf("Expected uid %s, but got %s", want, got)
    			}
    		})
    	}
    }
    
    func TestDeploymentFinderFunction(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  8. src/net/http/fs_test.go

    		if method == MethodHead {
    			wantBody = nil
    		}
    		if !bytes.Equal(body, wantBody) {
    			t.Fatalf("%v: got body %q, want %q", method, body, wantBody)
    		}
    		if got, want := res.Header.Get("Content-Length"), fmt.Sprint(len(file)); got != want {
    			t.Fatalf("%v: got Content-Length %q, want %q", method, got, want)
    		}
    	}
    }
    
    func TestFileServerFS(t *testing.T) {
    	filename := "index.html"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  9. src/net/http/httputil/reverseproxy_test.go

    		t.Fatalf("reading body: %v", err)
    	}
    	if got, want := string(bodyBytes), backendResponse; got != want {
    		t.Errorf("got body %q; want %q", got, want)
    	}
    	if c := res.Header.Get("Connection"); c != "" {
    		t.Errorf("handler got header %q = %q; want empty", "Connection", c)
    	}
    	if c := res.Header.Get(someConnHeader); c != "" {
    		t.Errorf("handler got header %q = %q; want empty", someConnHeader, c)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    			t.Errorf("package %s: got %d initializers; want %d", name, len(info.InitOrder), len(test.inits))
    			continue
    		}
    
    		// initializers must match
    		for i, want := range test.inits {
    			got := info.InitOrder[i].String()
    			if got != want {
    				t.Errorf("package %s, init %d: got %s; want %s", name, i, got, want)
    				continue
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top