Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for multiIndex (0.1 sec)

  1. pkg/kube/krt/collection.go

    	o.mu.RLock()
    	defer o.mu.RUnlock()
    	return slices.Clone(o.h)
    }
    
    // multiIndex stores input and output objects.
    // Each input and output can be looked up by its key.
    // Additionally, a mapping of input key -> output keys stores the transformation.
    type multiIndex[I, O any] struct {
    	outputs  map[Key[O]]O
    	inputs   map[Key[I]]I
    	mappings map[Key[I]]sets.Set[Key[O]]
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    			}
    		}
    		checkMulIndex = func(t *testing.T) {
    			checkColumnType(t, "name", false)
    			checkColumnType(t, "nick_name", false)
    			if !DB.Migrator().HasIndex(table, mulIndex.Name()) {
    				t.Errorf("%v: should has index %s but not", utils.FileWithLineNum(), mulIndex.Name())
    			}
    		}
    	}
    
    	tests := []TestCase{
    		{name: "notUnique to notUnique", from: &UniqueStruct1{}, to: &UniqueStruct2{}, checkFunc: checkNotUnique},
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
Back to top