- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for indexFunc (0.08 sec)
-
src/bytes/bytes_test.go
} for _, tt := range tests { if got := IndexRune([]byte(tt.in), tt.rune); got != tt.want { t.Errorf("IndexRune(%q, %d) = %v; want %v", tt.in, tt.rune, got, tt.want) } } haystack := []byte("test世界") allocs := testing.AllocsPerRun(1000, func() { if i := IndexRune(haystack, 's'); i != 2 { t.Fatalf("'s' at %d; want 2", i) } if i := IndexRune(haystack, '世'); i != 4 {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0) -
cmd/sts-handlers_test.go
Policy: []string{policy}, }) if err != nil { c.Fatalf("GetLDAPPolicyEntities should not fail: %v", err) } { // Check that the mapping we created exists. idx := slices.IndexFunc(policyResult.PolicyMappings, func(e madmin.PolicyEntities) bool { return e.Policy == policy && slices.Contains(e.Groups, actualGroupDN) }) if !(idx >= 0) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 10 23:40:37 UTC 2024 - 97.1K bytes - Viewed (0)