Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 81 for ptrtest (0.15 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGSuiteIntegrationTest.groovy

                public class FooTest {
                    @org.testng.annotations.Test public void pass() {}
                }
            """
            file("src/test/java/BarTest.java") << """
                public class BarTest {
                    @org.testng.annotations.Test public void pass() {}
                }
            """
            file("src/test/java/BazTest.java") << """
                public class BazTest {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractIncrementalTestIntegrationTest.groovy

                public class FooTest {
                    @Test public void test() {}
                }
            """.stripIndent()
            file("src/test/java/BarTest.java") << """
                ${testFrameworkImports}
                public class BarTest {
                    @Test public void test() {}
                }
            """.stripIndent()
    
            buildFile << """
                test.beforeTest { println "executed " + it }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/flag_test.go

    	"path/filepath"
    	"reflect"
    	"testing"
    )
    
    type ppfTestPackage struct {
    	path    string
    	dir     string
    	cmdline bool
    	flags   []string
    }
    
    type ppfTest struct {
    	args []string
    	pkgs []ppfTestPackage
    }
    
    var ppfTests = []ppfTest{
    	// -gcflags=-S applies only to packages on command line.
    	{
    		args: []string{"-S"},
    		pkgs: []ppfTestPackage{
    			{cmdline: true, flags: []string{"-S"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 15:04:04 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/runtime_test.go

    		{
    			name: "invalid: new runtime service fails",
    			prepare: func(mock *fakeImpl) {
    				mock.NewRemoteRuntimeServiceReturns(nil, errTest)
    			},
    			shouldError: true,
    		},
    		{
    			name: "invalid: new image service fails",
    			prepare: func(mock *fakeImpl) {
    				mock.NewRemoteImageServiceReturns(nil, errTest)
    			},
    			shouldError: true,
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/path/path_test.go

    // license that can be found in the LICENSE file.
    
    package path_test
    
    import (
    	. "path"
    	"runtime"
    	"testing"
    )
    
    type PathTest struct {
    	path, result string
    }
    
    var cleantests = []PathTest{
    	// Already clean
    	{"", "."},
    	{"abc", "abc"},
    	{"abc/def", "abc/def"},
    	{"a/b/c", "a/b/c"},
    	{".", "."},
    	{"..", ".."},
    	{"../..", "../.."},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 13 01:12:09 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy

            file("build/reports/pmd/test.xml").exists()
        }
    
        def "analyze bad code"() {
            badCode()
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
            failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:"))
            failure.assertHasResolutions(SCAN)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 18:47:00 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. pkg/kube/krt/krttest/helpers.go

    	inputs []any
    }
    
    // NewMock creates a helper to build Collections of static inputs for use with testing.
    // Example usage:
    //
    //	mock := krttest.NewMock(t, []any{serviceFoo, podBar, namespaceBaz})
    //	pods := krttest.GetMockCollection[Pod](mock) // makes a collection of all Pod types from inputs
    func NewMock(t test.Failer, inputs []any) *MockCollection {
    	t.Helper()
    	mc := &MockCollection{t: t, inputs: inputs}
    	t.Cleanup(func() {
    		t.Helper()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 19:33:01 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy

                pmd {
                    incrementalAnalysis = false
                }
            """.stripIndent()
    
            then:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':pmdTest'.")
            and:
            succeeds("dependencies", "--configuration", "pmd")
            output.contains "$testDependency"
        }
    
        def "fails properly using older version of PMD without incremental analysis support"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_json.txt

    }
    -- empty/pkg/pkg.go --
    package p
    -- empty/pkgtest/pkg.go --
    package p
    -- empty/pkgtest/test_test.go --
    package p
    -- empty/pkgtestxtest/pkg.go --
    package p
    -- empty/pkgtestxtest/test_test.go --
    package p
    -- empty/pkgtestxtest/xtest_test.go --
    package p_test
    -- empty/pkgxtest/pkg.go --
    package p
    -- empty/pkgxtest/xtest_test.go --
    package p_test
    -- empty/test/test_test.go --
    package p
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestFilteringIntegrationTest.groovy

                    @Test public void pass2() {}
                    @Test public void bar() {}
                }
            """
            file("src/test/java/BarTest.java") << """
                ${testFrameworkImports}
                public class BarTest {
                    @Test public void bar() {}
                }
            """
            file("src/test/java/OtherTest.java") << """
                ${testFrameworkImports}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 17.2K bytes
    - Viewed (0)
Back to top