Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 66 of 66 for TestWatch (0.44 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    	if f.throwError {
    		return nil, 0, errors.New("test error")
    	}
    	return f.evaluations, 0, nil
    }
    
    func (f *fakeCelFilter) CompilationErrors() []error {
    	return []error{}
    }
    
    func TestMatch(t *testing.T) {
    	fakeAttr := admission.NewAttributesRecord(nil, nil, schema.GroupVersionKind{}, "default", "foo", schema.GroupVersionResource{}, "", admission.Create, nil, false, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  2. src/path/filepath/match_test.go

    	{"a[", "x", false, ErrBadPattern},
    	{"a/b[", "x", false, ErrBadPattern},
    	{"*x", "xxx", true, nil},
    }
    
    func errp(e error) string {
    	if e == nil {
    		return "<nil>"
    	}
    	return e.Error()
    }
    
    func TestMatch(t *testing.T) {
    	for _, tt := range matchTests {
    		pattern := tt.pattern
    		s := tt.s
    		if runtime.GOOS == "windows" {
    			if strings.Contains(pattern, "\\") {
    				// no escape allowed on windows.
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. pkg/registry/core/service/storage/storage_test.go

    	storage, _, server := newStorage(t, []api.IPFamily{api.IPv4Protocol})
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestWatch(
    		validService(),
    		// matching labels
    		[]labels.Set{},
    		// not matching labels
    		[]labels.Set{
    			{"foo": "bar"},
    		},
    		// matching fields
    		[]fields.Set{
    			{"metadata.name": "foo"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  4. src/regexp/all_test.go

    	}
    	// now try bytes
    	m = re.Match([]byte(test.text))
    	if m != (len(test.matches) > 0) {
    		t.Errorf("Match failure on %s: %t should be %t", test, m, len(test.matches) > 0)
    	}
    }
    
    func TestMatch(t *testing.T) {
    	for _, test := range findTests {
    		matchTest(t, &test)
    	}
    }
    
    func matchFunctionTest(t *testing.T, test *FindTest) {
    	m, err := MatchString(test.pat, test.text)
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. src/go/build/build_test.go

    	"io"
    	"os"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	Default.GOROOT = testenv.GOROOT(nil)
    	os.Exit(m.Run())
    }
    
    func TestMatch(t *testing.T) {
    	ctxt := Default
    	what := "default"
    	match := func(tag string, want map[string]bool) {
    		t.Helper()
    		m := make(map[string]bool)
    		if !ctxt.matchAuto(tag, m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    	num1 := num["num1"].(int64)
    	num2 := num["num2"].(int64)
    	if num1 != 9223372036854775807 || num2 != 1000000 {
    		t.Errorf("Expected %v, got %v, %v", `9223372036854775807, 1000000`, num1, num2)
    	}
    }
    
    func TestPatch(t *testing.T) {
    	tearDown, apiExtensionClient, dynamicClient, err := fixtures.StartDefaultServerWithClients(t)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tearDown()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top