Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestMerge (0.35 sec)

  1. test/typeparam/chansimp.dir/main.go

    		c <- 5
    		close(c)
    	}()
    	got := a.ReadAll(context.Background(), c)
    	want := []int{4, 2, 5}
    	if !a.SliceEqual(got, want) {
    		panic(fmt.Sprintf("ReadAll returned %v, want %v", got, want))
    	}
    }
    
    func TestMerge() {
    	c1 := make(chan int)
    	c2 := make(chan int)
    	go func() {
    		c1 <- 1
    		c1 <- 3
    		c1 <- 5
    		close(c1)
    	}()
    	go func() {
    		c2 <- 2
    		c2 <- 4
    		c2 <- 6
    		close(c2)
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. test/typeparam/chans.go

    		close(c)
    	}()
    	got := _ReadAll(context.Background(), c)
    	want := []int{4, 2, 5}
    	if !_SliceEqual(got, want) {
    		panic(fmt.Sprintf("_ReadAll returned %v, want %v", got, want))
    	}
    }
    
    func TestMerge() {
    	c1 := make(chan int)
    	c2 := make(chan int)
    	go func() {
    		c1 <- 1
    		c1 <- 3
    		c1 <- 5
    		close(c1)
    	}()
    	go func() {
    		c2 <- 2
    		c2 <- 4
    		c2 <- 6
    		close(c2)
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/runtime/registry_test.go

    	uuid := uuid.New().String()
    	return func(_ context.Context, _ runtime.Object, _ framework.Handle) (framework.Plugin, error) {
    		return &mockNoopPlugin{uuid}, nil
    	}
    }
    
    func TestMerge(t *testing.T) {
    	m1 := NewMockNoopPluginFactory()
    	m2 := NewMockNoopPluginFactory()
    	tests := []struct {
    		name            string
    		primaryRegistry Registry
    		registryToMerge Registry
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. pkg/util/sets/set_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			if got := tt.first.Equals(tt.second); got != tt.want {
    				t.Errorf("Unexpected Equal. got %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestMerge(t *testing.T) {
    	cases := []struct {
    		s1, s2   Set[string]
    		expected []string
    	}{
    		{
    			s1:       New("a1", "a2"),
    			s2:       New("a1", "a2"),
    			expected: []string{"a1", "a2"},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top