- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for toInterfaceSlice (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go
t.Errorf("Unexpected: %#v event received, expected no events", e) // We consciously make the timeout short here to speed up tests. case <-time.After(100 * time.Millisecond): return } } func toInterfaceSlice[T any](s []T) []interface{} { result := make([]interface{}, len(s)) for i, v := range s { result[i] = v } return result }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 22 07:26:55 UTC 2024 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go
} if tt.expectedAlternatives == nil { expectNoDiff(t, fmt.Sprintf("%s: incorrect pod", tt.name), tt.expectedOut, out) } else { ExpectContains(t, fmt.Sprintf("%s: incorrect pod", tt.name), toInterfaceSlice(tt.expectedAlternatives), out) } }) } } func RunTestUnconditionalDelete(ctx context.Context, t *testing.T, store storage.Interface) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 91.4K bytes - Viewed (0)