Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestVisitor (0.28 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryFileTreeTest.groovy

            where:
            visitor << [new TestVisitor(false), new TestVisitor(true)]
        }
    
        private static class TestVisitor implements ReproducibleFileVisitor {
            def visited = []
            def stopOn = null
            def isReproducibleFileOrder
    
            TestVisitor(boolean isReproducibleFileOrder) {
                this.isReproducibleFileOrder = isReproducibleFileOrder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    				NamespaceParam("test").DefaultNamespace()
    
    			testVisitor := &testVisitor{}
    			singleItemImplied := false
    
    			err := b.Do().IntoSingleItemImplied(&singleItemImplied).Visit(testVisitor.Handle)
    			if err != nil {
    				t.Fatalf("unexpected response: %v %t %#v %s", err, singleItemImplied, testVisitor.Infos, tt.name)
    			}
    
    			info := testVisitor.Infos
    
    			for i, v := range info {
    				switch tt.object.(type) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/resource/visitor_test.go

    func TestFlattenListVisitor(t *testing.T) {
    	b := newDefaultBuilder().
    		FilenameParam(false, &FilenameOptions{Recursive: false, Filenames: []string{"../../artifacts/deeply-nested.yaml"}}).
    		Flatten()
    
    	test := &testVisitor{}
    
    	err := b.Do().Visit(test.Handle)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(test.Infos) != 6 {
    		t.Fatal(dump.Pretty(test.Infos))
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/resource/kustomizevisitor_test.go

    	fSys.WriteFile("jsonpatch.json", []byte(jsonpatchContent))
    	b := newDefaultBuilder()
    	kv := KustomizeVisitor{
    		mapper:  b.mapper,
    		dirPath: ".",
    		schema:  b.schema,
    		fSys:    fSys,
    	}
    	tv := &testVisitor{}
    	if err := kv.Visit(tv.Handle); err != nil {
    		t.Fatal(err)
    	}
    	if len(tv.Infos) != 4 {
    		t.Fatal(dump.Pretty(tv.Infos))
    	}
    	if string(kv.yml) != expectedContent {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top