- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 35 for TestFilter (0.31 sec)
-
test/typeparam/sets.go
s1.Add(1) s1.Add(2) s1.Add(3) s1.Add(4) tot := 0 s1.Iterate(func(i int) { tot += i }) if tot != 10 { panic(fmt.Sprintf("total of %v == %d, want 10", s1, tot)) } } func TestFilter() { s1 := _Make[int]() s1.Add(1) s1.Add(2) s1.Add(3) s1.Filter(func(v int) bool { return v%2 == 0 }) if vals, want := s1.Values(), []int{2}; !_SliceEqual(vals, want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.7K bytes - Viewed (0) -
test/typeparam/slices.go
} if got := _Reduce(nil, 0, func(i, j int) int { return i + j }); got != 0 { panic(fmt.Sprintf("_Reduce(nil, 0, add) = %v, want 0", got)) } } func TestFilter() { s1 := []int{1, 2, 3} s2 := _Filter(s1, func(i int) bool { return i%2 == 0 }) if want := []int{2}; !_Equal(s2, want) { panic(fmt.Sprintf("_Filter(%v, even) = %v, want %v", s1, s2, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
test/typeparam/chans.go
got := _ReadAll(ctx, _Merge(ctx, c1, c2)) sort.Ints(got) want := []int{1, 2, 3, 4, 5, 6} if !_SliceEqual(got, want) { panic(fmt.Sprintf("_Merge returned %v, want %v", got, want)) } } func TestFilter() { c := make(chan int) go func() { c <- 1 c <- 2 c <- 3 close(c) }() even := func(i int) bool { return i%2 == 0 } ctx := context.Background()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0) -
src/go/ast/commentmap_test.go
out = append(out, fmt.Sprintf("\t\"%2d: %T\":\t%q,", fset.Position(n.Pos()).Line, n, ctext(list))) } sort.Strings(out) for _, s := range out { fmt.Println(s) } } } func TestFilter(t *testing.T) { fset := token.NewFileSet() f, err := parser.ParseFile(fset, "", src, parser.ParseComments) if err != nil { t.Fatal(err) } cmap := NewCommentMap(fset, f, f.Comments)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 3.9K bytes - Viewed (0) -
platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/AbstractTestTask.java
* Classes or method names are supported, wildcard '*' is supported. * For more information see the user guide chapter on testing. * * For more information on supported patterns see {@link TestFilter} */ @Option(option = "tests", description = "Sets test class or method name to be included (in addition to the test task filters), '*' is supported.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Mar 25 18:49:01 UTC 2024 - 27.6K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/native/swift_testing.adoc
include::sample[dir="snippets/swift/testFiltering/groovy",files="build.gradle[tags=test-filtering]"] ==== For more details and examples of declaring filters in the build script, please see the TestFilter reference. The command-line option is especially useful to execute a single test method. It is also possible to supply multiple `--tests` options, all of whose patterns will take effect.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 10.4K bytes - Viewed (0) -
pkg/kube/kclient/client_test.go
// Ignore the adds return !strings.HasPrefix(s, "add/") }) return slices.Equal(events, []string{"delete/selected"}) || slices.Equal(events, nil) }, retry.Timeout(time.Second*3)) } func TestFilter(t *testing.T) { tracker := assert.NewTracker[string](t) c := kube.NewFakeClient() meshWatcher := mesh.NewTestWatcher(&meshconfig.MeshConfig{}) testns := clienttest.NewWriter[*corev1.Namespace](t, c)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 15:12:54 UTC 2024 - 17.2K bytes - Viewed (0) -
pkg/slices/slices_test.go
t.Run(tt.name, func(t *testing.T) { if got := FindFunc(tt.elements, tt.fn); !reflect.DeepEqual(got, tt.want) { t.Errorf("FindFunc got %v, want %v", got, tt.want) } }) } } func TestFilter(t *testing.T) { tests := []struct { name string elements []string fn func(string) bool want []string }{ { name: "empty element", elements: []string{},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/build_environment.adoc
|<<command_line_interface#command_line_interface,Command line interface>> |Flags that configure build behavior and Gradle features |`--rerun` |<<sec:project_properties,Project properties>> |Properties specific to your Gradle project |`TestFilter::isFailOnNoMatchingTests=false` |<<#sec:gradle_system_properties,System properties>> |Properties that are passed to the Gradle runtime (JVM) |`systemProp.http.proxyHost=somehost.org`
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 24 04:19:09 UTC 2024 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go
if !meet && CompilationResults[i].Error != nil { t.Errorf("Unexpected err '%v' for expression '%s'", CompilationResults[i].Error, validations[i].GetExpression()) } } }) } } func TestFilter(t *testing.T) { configMapParams := &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", }, Data: map[string]string{ "fakeString": "fake", }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 40.4K bytes - Viewed (0)