Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,144 for want (0.17 sec)

  1. operator/cmd/mesh/profile-dump_test.go

    				if err := os.WriteFile(outPath, []byte(got), 0o644); err != nil {
    					t.Error(err)
    				}
    			}
    
    			want, err := readFile(outPath)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !util.IsYAMLEqual(got, want) {
    				t.Errorf("profile-dump command(%s): got:\n%s\n\nwant:\n%s\nDiff:\n%s\n", tt.desc, got, want, util.YAMLDiff(got, want))
    			}
    		})
    	}
    }
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Jan 20 11:44:25 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  2. internal/s3select/simdj/reader_amd64_test.go

    				}
    				err = want.WriteJSON(&wantB)
    				if err != nil {
    					t.Error(err)
    				}
    				// truncate newline from 'want'
    				wantB.Truncate(wantB.Len() - 1)
    				if !bytes.Equal(gotB.Bytes(), wantB.Bytes()) {
    					t.Errorf("JSON output mismatch.\nwant: %s\ngot:  %s", wantB.String(), gotB.String())
    				}
    			}
    		})
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-utils_test.go

    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    			want = hashDeterministicString(m)
    			delete(m, "12312312")
    			m["another"] = ""
    
    			if got := hashDeterministicString(m); got == want {
    				t.Errorf("hashDeterministicString() = %v, does not want %v", got, want)
    			}
    
    			want = hashDeterministicString(m)
    			m["another"] = "hashDeterministicString"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Sep 02 14:49:24 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. src/bytes/reader_test.go

    		t.Errorf("Read failed: read %d %v", n, err)
    	}
    	if got, want := r.Len(), 1; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 1)); err != nil || n != 1 {
    		t.Errorf("Read failed: read %d %v; want 1, nil", n, err)
    	}
    	if got, want := r.Len(), 0; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    }
    
    var UnreadRuneErrorTests = []struct {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  5. cmd/metacache_test.go

    		name   string
    		prefix string
    		want   string
    	}{
    		{
    			name:   "root",
    			prefix: "object.ext",
    			want:   "",
    		},
    		{
    			name:   "rootdotslash",
    			prefix: "./object.ext",
    			want:   "",
    		},
    		{
    			name:   "rootslash",
    			prefix: "/",
    			want:   "",
    		},
    		{
    			name:   "folder",
    			prefix: "prefix/",
    			want:   "prefix/",
    		},
    		{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Sep 08 18:06:45 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  6. cmd/metacache-stream_test.go

    		if entry.name != want[i] {
    			t.Errorf("entry %d, want %q, got %q", i, want[i], entry.name)
    		}
    	}
    	if entries.len() != len(want) {
    		t.Fatal("unexpected length:", entries.len(), "want:", len(want))
    	}
    
    	want = want[:0]
    	entries, err = r.readN(0, false, true, false, "")
    	if err != nil {
    		t.Fatal(err, entries.len())
    	}
    	if entries.len() != len(want) {
    		t.Fatal("unexpected length:", entries.len(), "want:", len(want))
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  7. tests/preload_suits_test.go

    	}
    
    	if !reflect.DeepEqual(got[0], want) && !reflect.DeepEqual(got[1], want) {
    		t.Fatalf("got %s; want array containing %s", toJSONString(got), toJSONString(want))
    	}
    
    	if !reflect.DeepEqual(got[0], want2) && !reflect.DeepEqual(got[1], want2) {
    		t.Errorf("got %s; want array containing %s", toJSONString(got), toJSONString(want2))
    	}
    }
    
    func TestNilPointerSlice2(t *testing.T) {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Fri Mar 18 05:38:46 GMT 2022
    - 30.3K bytes
    - Viewed (0)
  8. istioctl/pkg/admin/istiodconfig_test.go

    			if (err != nil) != tt.wantErr {
    				t.Errorf("newScopeLevelPair() error = %v, wantErr %v", err, tt.wantErr)
    				return
    			}
    			if !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("newScopeLevelPair() got = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func Test_newScopeStackTraceLevelPair(t *testing.T) {
    	validationPattern := `^\w+:(debug|error|warn|info|debug)`
    	type args struct {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  9. istioctl/pkg/multicluster/remote_secret_test.go

    			objs:     []runtime.Object{kubeSystemNamespace, sa, saSecret},
    			name:     "cluster-foo",
    			want:     "cal-want",
    		},
    		{
    			testName: "success with type defined",
    			objs:     []runtime.Object{kubeSystemNamespace, sa, saSecret},
    			name:     "cluster-foo",
    			secType:  "config",
    			want:     "cal-want",
    		},
    		{
    			testName:   "failure due to multiple secrets",
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  10. cmd/data-usage_test.go

    		t.Error("lastupdate not set")
    	}
    
    	if !want.Info.LastUpdate.Equal(got.Info.LastUpdate) {
    		t.Fatalf("deserialize LastUpdate mismatch\nwant: %+v\ngot:  %+v", want, got)
    	}
    	if len(want.Cache) != len(got.Cache) {
    		t.Errorf("deserialize mismatch length\nwant: %+v\ngot:  %+v", len(want.Cache), len(got.Cache))
    	}
    	for wkey, wval := range want.Cache {
    		gotv := got.Cache[wkey]
    		if !equalAsJSON(gotv, wval) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top