Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for testBuild (0.14 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/CacheProjectIntegrationTest.groovy

        @Test
        void "caches compiled build script"() {
            createLargeBuildScript()
            testBuild("hello1", "Hello 1")
            TestFile.Snapshot classFileSnapshot = classFile.snapshot()
    
            testBuild("hello2", "Hello 2")
            classFile.assertHasNotChangedSince(classFileSnapshot)
    
            modifyLargeBuildScript()
            testBuild("newTask", "I am new")
            classFile.assertHasChangedSince(classFileSnapshot)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. maven-model/src/test/java/org/apache/maven/model/ModelTest.java

    /**
     * Tests {@code Model}.
     *
     */
    class ModelTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Model().hashCode();
        }
    
        @Test
        void testBuild() {
            Model model = new Model();
            Build build = new Build();
            build.setOutputDirectory("myOutputDirectory");
            model.setBuild(build);
            Build build2 = model.getBuild();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. pkg/config/schema/resource/schema_test.go

    			g := NewWithT(t)
    
    			err := c.b.BuildNoValidate().Validate()
    			if c.expectError {
    				g.Expect(err).ToNot(BeNil())
    			} else {
    				g.Expect(err).To(BeNil())
    			}
    		})
    	}
    }
    
    func TestBuild(t *testing.T) {
    	cases := []struct {
    		name        string
    		b           Builder
    		expectError bool
    	}{
    		{
    			name: "valid",
    			b: Builder{
    				Kind:         "Empty",
    				Plural:       "Empties",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. cmd/erasure-sets_test.go

    	for i, testCase := range testCases {
    		if sipHashElement := hashKey("SIPMOD", testCase.objectName, 200, testUUID); sipHashElement != testCase.sipHash {
    			t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement)
    		}
    	}
    
    	if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
    		t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/pod_cache_test.go

    	}
    }
    
    func TestUpsertPodCache(t *testing.T) {
    	counter.Store(0)
    
    	p := newPodNetnsCache(openNsTestOverrideWithInodes(1, 1))
    
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{UID: "testUID"}}
    	nspath1 := "/path/to/netns/1"
    	nspath2 := "/path/to/netns/2"
    
    	netns1, err := p.UpsertPodCache(pod, nspath1)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_no_run_example.txt

    }
    
    func Example_test() {
    	// This test will not be run, it has no "Output:" comment.
    }
    -- test_test.go --
    package pkg
    
    import (
    	"os"
    	"testing"
    )
    
    func TestBuilt(t *testing.T) {
    	os.Stdout.Write([]byte("A normal test was executed.\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 496 bytes
    - Viewed (0)
  7. src/runtime/security_test.go

    	}
    	if err := privesc("chmod", "u+s", bin); err != nil {
    		t.Skipf("unable to set permissions on test binary, likely no passwordless sudo/su: %s", err)
    	}
    }
    
    func TestSUID(t *testing.T) {
    	// This test is relatively simple, we build a test program which opens a
    	// file passed via the TEST_OUTPUT envvar, prints the value of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 18:10:14 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

            TestFile child = parent.createDir("testchild")
            child.file("reference.txt") << "test file"
    
            child.mode = mode
            and:
            buildFile << """
                task copy(type: Copy) {
                    from "testparent"
                    into ("build/tmp")
                }
                """
            when:
            run "copy"
            then:
            file("build/tmp/testchild").mode == mode
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go

    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 05 20:12:50 UTC 2022
    - 17.3K bytes
    - Viewed (0)
  10. pkg/kubelet/server/server_test.go

    		if podFullName != expectedPodName {
    			t.Errorf("expected %s, got %s", expectedPodName, podFullName)
    		}
    		if string(uid) != testUID {
    			t.Errorf("expected %s, got %s", testUID, uid)
    		}
    		if containerName != expectedContainerName {
    			t.Errorf("expected %s, got %s", expectedContainerName, containerName)
    		}
    		if strings.Join(cmd, " ") != expectedCommand {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top