Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestMerge (0.06 sec)

  1. 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)
  2. 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