Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for testclock (0.15 sec)

  1. pilot/pkg/leaderelection/leaderelection_test.go

    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/fake"
    	k8stesting "k8s.io/client-go/testing"
    
    	"istio.io/istio/pkg/revisions"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    const testLock = "test-lock"
    
    func createElection(t *testing.T,
    	name string, revision string,
    	watcher revisions.DefaultWatcher,
    	expectLeader bool,
    	client kubernetes.Interface, fns ...func(stop <-chan struct{}),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. src/archive/tar/writer_test.go

    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testClose struct { // Close() == wantErr
    			wantErr error
    		}
    		testFnc any // testHeader | testWrite | testReadFrom | testClose
    	)
    
    	vectors := []struct {
    		file  string // Optional filename of expected output
    		tests []testFnc
    	}{{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

            }, receivingFileLockContentionHandler)
            receivingSocket = receivingFileLockContentionHandler.communicator.socket
            receivingLock = fileLockManager.lock(file("locks/testlock"), DefaultLockOptions.mode(FileLockManager.LockMode.Exclusive), "testlock", "test holding lock", whenContended)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. src/go/types/check_test.go

    	const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32)
    	testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, false, withSizes(&StdSizes{4, 4}))
    }
    
    func TestCheck(t *testing.T) {
    	old := buildcfg.Experiment.RangeFunc
    	defer func() {
    		buildcfg.Experiment.RangeFunc = old
    	}()
    	buildcfg.Experiment.RangeFunc = true
    
    	DefPredeclaredTestFuncs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/check_test.go

    	const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32)
    	testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, 0, false, withSizes(&StdSizes{4, 4}))
    }
    
    func TestCheck(t *testing.T) {
    	old := buildcfg.Experiment.RangeFunc
    	defer func() {
    		buildcfg.Experiment.RangeFunc = old
    	}()
    	buildcfg.Experiment.RangeFunc = true
    
    	DefPredeclaredTestFuncs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. pkg/slices/slices_test.go

    			result := Reverse(tc.input)
    			if diff := cmp2.Diff(tc.expected, result); diff != "" {
    				t.Errorf("Reverse() mismatch (-want +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestClone(t *testing.T) {
    	tests := []struct {
    		name  string
    		slice []interface{}
    	}{
    		{
    			name:  "Empty",
    			slice: []interface{}{},
    		},
    		{
    			name:  "Single Element",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. src/slices/slices_test.go

    		t.Errorf("DeleteFunc: want nil discarded elements, got %v, %v", mem[3], mem[4])
    	}
    	if mem[5] == nil {
    		t.Errorf("DeleteFunc: want unchanged elements beyond original len, got nil")
    	}
    }
    
    func TestClone(t *testing.T) {
    	s1 := []int{1, 2, 3}
    	s2 := Clone(s1)
    	if !Equal(s1, s2) {
    		t.Errorf("Clone(%v) = %v, want %v", s1, s2, s1)
    	}
    	s1[0] = 4
    	want := []int{1, 2, 3}
    	if !Equal(s2, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_server_test.go

    	s.Close()
    	var opErr *net.OpError
    	if !errors.As(err, &opErr) || opErr.Err != error(alertUnknownCA) {
    		t.Errorf("Got error: %s; expected: %s", err, error(alertUnknownCA))
    	}
    }
    
    func TestClose(t *testing.T) {
    	c, s := localPipe(t)
    	go c.Close()
    
    	err := Server(s, testConfig).Handshake()
    	s.Close()
    	if err != io.EOF {
    		t.Errorf("Got error: %s; expected: %s", err, io.EOF)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  9. tests/query_test.go

    type Int64 int64
    
    func (v Int64) Value() (driver.Value, error) {
    	return v - 1, nil
    }
    
    func (f *Int64) Scan(v interface{}) error {
    	y := v.(int64)
    	*f = Int64(y + 1)
    	return nil
    }
    
    func TestPluck(t *testing.T) {
    	users := []*User{
    		GetUser("pluck-user1", Config{}),
    		GetUser("pluck-user2", Config{}),
    		GetUser("pluck-user3", Config{}),
    	}
    
    	DB.Create(&users)
    
    	var names []string
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
  10. src/text/template/exec_test.go

    			name: funcNameTestFunc,
    		},
    	)
    	// If we get here, the name did not cause a panic, which is how Funcs
    	// reports an error.
    	t.Errorf("%q succeeded incorrectly as function name", name)
    }
    
    func TestBlock(t *testing.T) {
    	const (
    		input   = `a({{block "inner" .}}bar({{.}})baz{{end}})b`
    		want    = `a(bar(hello)baz)b`
    		overlay = `{{define "inner"}}foo({{.}})bar{{end}}`
    		want2   = `a(foo(goodbye)bar)b`
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top