Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 339 for wantRm (0.42 sec)

  1. pilot/pkg/credentials/kube/secrets_test.go

    				t.Errorf("got key %q, wanted %q", string(actualKey), tt.key)
    			}
    			if tt.cert != string(actualCert) {
    				t.Errorf("got cert %q, wanted %q", string(actualCert), tt.cert)
    			}
    			if tt.staple != string(actualStaple) {
    				t.Errorf("got staple %q, wanted %q", string(actualStaple), tt.staple)
    			}
    			if tt.crl != string(actualCrl) {
    				t.Errorf("got crl %q, wanted %q", string(actualCrl), tt.crl)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 19:18:21 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/debug_lines_test.go

    				newGotStmts = append(newGotStmts, x)
    			}
    		}
    		if !reflect.DeepEqual(wantStmts, newGotStmts) {
    			t.Errorf("wanted stmts %v but got %v (with repeats still in: %v)", wantStmts, newGotStmts, gotStmts)
    		}
    
    	} else {
    		if !reflect.DeepEqual(wantStmts, gotStmts) {
    			t.Errorf("wanted stmts %v but got %v", wantStmts, gotStmts)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class_test.go

    		if err == nil && tt.expectedError != nil {
    			t.Errorf("Test %d, Expected %s, got %s", i+1, tt.expectedError, err)
    			return
    		}
    		if tt.expectedError == nil && !reflect.DeepEqual(gotSc, tt.wantSc) {
    			t.Errorf("Test %d, Expected %v, got %v", i+1, tt.wantSc, gotSc)
    			return
    		}
    		if tt.expectedError != nil && err.Error() != tt.expectedError.Error() {
    			t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err)
    		}
    	}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/net/http/fcgi/fcgi_test.go

    		name   string
    		body   string
    		wantCT string
    	}{
    		{
    			name:   "no body",
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    			name:   "html",
    			body:   "<html><head><title>test page</title></head><body>This is a body</body></html>",
    			wantCT: "text/html; charset=utf-8",
    		},
    		{
    			name:   "text",
    			body:   strings.Repeat("gopher", 86),
    			wantCT: "text/plain; charset=utf-8",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. pkg/config/validation/agent/validation_test.go

    			if err == nil && tt.out != "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = nil, wanted %q", tt.in, tt.out)
    			} else if err != nil && tt.out == "" {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted nil", tt.in, err)
    			} else if err != nil && !strings.Contains(err.Error(), tt.out) {
    				t.Fatalf("ValidateWildcardDomain(%v) = %v, wanted %q", tt.in, err, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. pkg/util/hash/hash_test.go

    // limitations under the License.
    
    package hash
    
    import (
    	"testing"
    )
    
    func TestFactory(t *testing.T) {
    	testCases := []struct {
    		name                   string
    		str                    string
    		wantSum                []byte
    		wantStr                string
    		wantUint64             uint64
    		wantLittleEndianUint64 uint64
    	}{
    		{
    			name: "foo",
    			str:  "foo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 20:24:14 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. internal/bucket/bandwidth/monitor_test.go

    			got = m.GetReport(SelectBuckets())
    			if !reflect.DeepEqual(got.BucketStats, tt.want2.BucketStats) {
    				t.Errorf("GetReport() = %v, want %v", got.BucketStats, tt.want2.BucketStats)
    			}
    		})
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 06 03:21:59 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. src/runtime/ehooks_test.go

    				t.Fatalf("failed%s mode %s: wanted %q\noutput:\n%s", bt,
    					s.mode, s.expected, outs)
    			}
    			for _, need := range s.musthave {
    				if !strings.Contains(outs, need) {
    					t.Fatalf("failed mode %s: output does not contain %q\noutput:\n%s",
    						s.mode, need, outs)
    				}
    			}
    			if s.expected == "" && s.musthave == nil && outs != "" {
    				t.Errorf("failed mode %s: wanted no output\noutput:\n%s", s.mode, outs)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_client_test.go

    			t.Fatalf("expected non-nil certificates after resumption. Got peerCertificates: %#v, verifiedCertificates: %#v", hs.PeerCertificates, hs.VerifiedChains)
    		}
    		if got, want := hs.ServerName, clientConfig.ServerName; got != want {
    			t.Errorf("%s: server name %s, want %s", test, got, want)
    		}
    	}
    
    	getTicket := func() []byte {
    		return clientConfig.ClientSessionCache.(*lruSessionCache).q.Front().Value.(*lruSessionCacheEntry).state.session.ticket
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/inst_test.go

    	// ending in "-tramp" (which are created on riscv).
    	re := regexp.MustCompile(`\bSort\[.*shape.*\][^-]`)
    	r := re.FindAllIndex(output, -1)
    	if len(r) != 1 {
    		t.Fatalf("Wanted 1 instantiations of Sort function, got %d\n", len(r))
    	}
    
    	// Actually run the test and make sure output is correct.
    	cmd = testenv.Command(t, gotool, "run", filepath.Join("testdata", filename))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top