Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for someLang (0.38 sec)

  1. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/TemplateFactoryTest.groovy

            where:
            language        | sourceSet   | target
            Language.JAVA   | "main"      | "app/src/main/java/SomeClazz.somelang"
            Language.GROOVY | "test"      | "app/src/test/groovy/SomeClazz.somelang"
            Language.JAVA   | "integTest" | "app/src/integTest/java/SomeClazz.somelang"
        }
    
        def "generates source file with package from template"() {
            setup:
            def targetAsFile = new File(target)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 20:26:42 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentSourcesIntegrationTest.groovy

            then:
            output.contains "names: [someLang]"
        }
    
        def "elements of component sources container should be visible in model report"() {
            given:
            buildFile << """
                model {
                    components {
                        main {
                            sources {
                                someLang(CustomLanguageSourceSet)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentBinarySourcesIntegrationTest.groovy

                                sources {
                                    someLang(CustomLanguageSourceSet)
                                }
                            }
                        }
                    }
                    tasks {
                        create("printSourceDisplayName") {
                            def sources = $.components.mylib.binaries.main.sources.someLang
                            doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

                            }
                        }
                    }
                }
            '''
            // Non-empty source set to trigger the corresponding task
            file('src/main/someLang/somefile.someLang').text = ""
    
            when:
            succeeds "printBinaryTaskNames"
    
            then:
            output.contains "names: [customMainB1MainSomeLang]"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. tests/test_callable_endpoint.py

    from fastapi.testclient import TestClient
    
    
    def main(some_arg, q: Optional[str] = None):
        return {"some_arg": some_arg, "q": q}
    
    
    endpoint = partial(main, "foo")
    
    app = FastAPI()
    
    app.get("/")(endpoint)
    
    
    client = TestClient(app)
    
    
    def test_partial():
        response = client.get("/?q=bar")
        data = response.json()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Jun 28 18:13:30 UTC 2020
    - 457 bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/IntegrationTest.groovy

    /**
     * This annotation is a marker and guarantees all integration tests are tagged.
     *
     * When we use JUnit Platform `includeTags('SomeTag')`, all spock tests are excluded:
     * https://github.com/spockframework/spock/issues/1288 . As a workaround,
     * we tag all non-spock integration tests and use `includeTags(none() | SomeTag)` to make
     * sure spock engine tests are executed.
     */
    @Retention(RetentionPolicy.RUNTIME)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/jupiter/JUnitJupiterCategoriesOrTagsCoverageIntegrationTest.groovy

                    import org.junit.jupiter.params.ParameterizedTest;
                    import org.junit.jupiter.params.provider.ValueSource;
    
                    public class NestedTestsWithTags {
    
                        @Tag("SomeTag")
                        public static class TagOnClass {
                            @ParameterizedTest
                            @ValueSource(strings = {"tag on class"})
                            public void run(String param) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/DefaultConventionTest.groovy

            convention.extensionsAsDynamicObject.prop
        }
    
        @Test void mixesInEachMethodOfConventionObject() {
            assertEquals(convention1.meth('somearg'), convention.extensionsAsDynamicObject.meth('somearg'))
        }
    
        @Test void conventionObjectsMethodsHavePrecedenceAccordingToOrderAdded() {
            assertEquals(convention1.meth(), convention.extensionsAsDynamicObject.meth())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy

            then:
            impl.someLong(12L) == 13L
            impl.someBoolean(true) == false
            impl.someChar('a' as char) == 'b' as char
            impl.someThing(1, 4) == 5
            impl.dontReturn(1 as short, 4 as byte)
        }
    
        static interface TypeWithPrimitiveMethods {
            long someLong(long l)
            boolean someBoolean(boolean b)
            char someChar(char ch)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    		default:
    			if strings.HasPrefix(line, " ") || strings.HasPrefix(line, "\t") {
    				delPrevChar()
    				line = "\n" + line + "\n" // Replace it with newline. This is useful when we have a line with: "Example:\n\tJSON-someting..."
    			} else {
    				line += " "
    			}
    			buffer.WriteString(line)
    		}
    	}
    
    	postDoc := strings.TrimRight(buffer.String(), "\n")
    	postDoc = strings.Replace(postDoc, "\\\"", "\"", -1) // replace user's \" to "
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
Back to top