Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for test_sum (0.38 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

        }
    }
    
    enum TestEnum {
        ABC, DEF
    }
    
    class EnumCoerceTestSubject {
        TestEnum enumProperty
    
        String stringValue
    
        void someEnumMethod(TestEnum testEnum) {
            this.enumProperty = testEnum
        }
    
        void enumMethodWithStringOverload(TestEnum testEnum) {
            enumProperty = testEnum
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GUtilTest.groovy

            expect:
            TestEnum.ENUM1 == toEnum(TestEnum, "ENUM1")
            TestEnum.ENUM1 == toEnum(TestEnum, "enum1")
            TestEnum.ENUM1 == toEnum(TestEnum, "EnUm1")
            TestEnum.ENUM2 == toEnum(TestEnum, "enum2")
            TestEnum.ENUM3 == toEnum(TestEnum, "enum3")
            TestEnum.ENUM_4_1 == toEnum(TestEnum, "enum_4_1")
            TestEnum.STANDARD_OUT == toEnum(TestEnum, "Standard_Out")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionIntegrationTest.groovy

            'Long'           | []                                   | 'null'              | 'not provided'
            'TestEnum'       | ['--myProp=OPT_2']                   | 'OPT_2'             | 'provided with upper case'
            'TestEnum'       | ['--myProp=opt_2']                   | 'OPT_2'             | 'provided with lower case'
            'TestEnum'       | []                                   | 'null'              | 'not provided'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionValueNotationParserFactorySpec.groovy

            given:
            OptionValueNotationParserFactory factory = new OptionValueNotationParserFactory()
            when:
            def parser = factory.toComposite(TestEnum.class);
            then:
            parser.parseNotation("ABC") == TestEnum.ABC
        }
    
        def "creates notationparser for handling handles integers"(){
            given:
            OptionValueNotationParserFactory factory = new OptionValueNotationParserFactory()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 08 09:28:44 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. subprojects/diagnostics/src/integTest/resources/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest/listsEnumAndBooleanCmdOptionValues/build.gradle

        @Option(option = "enumValue", description = "Configures an enum value in CustomTask.")
        public void setEnumValue(TestEnum value) {
        }
    
        @Option(option = "booleanValue", description = "Configures a boolean flag in CustomTask.")
        public void setBooleanValue(boolean value) {
        }
    }
    
    enum TestEnum {
        ABC, DEF, GHIJKL
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 06 10:43:03 UTC 2023
    - 517 bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/TaskOptionFailureIntegrationTest.groovy

                ${taskWithSingleOption('TestEnum')}
            """
    
            when:
            runAndFail 'someTask', '--myProp', 'unsupportedValue'
    
            then:
            failure.assertHasDescription("Problem configuring option 'myProp' on task ':someTask' from command line.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sub_applications/test_tutorial001.py

    
    def test_openapi_schema_sub():
        response = client.get("/subapi/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == openapi_schema_sub
    
    
    def test_sub():
        response = client.get("/subapi/sub")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/options/AbstractOptionIntegrationSpec.groovy

                    @TaskAction
                    public void renderOptionValue() {
                        System.out.println("Value of myProp: " + myProp);
                    }
                    
                    private static enum TestEnum {
                        OPT_1, OPT_2, OPT_3
                    }
                }
            """
        }
    
        String taskWithFlagMethod() {
            """
                import org.gradle.api.DefaultTask;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 09:40:56 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/x86/pcrelative_test.go

    	"os"
    	"path/filepath"
    	"testing"
    )
    
    const asmData = `
    GLOBL zeros<>(SB),8,$64
    TEXT ยทtestASM(SB),4,$0
    VMOVUPS zeros<>(SB), %s // PC relative relocation is off by 1, for Y8-Y15, Z8-15 and Z24-Z31
    RET
    `
    
    const goData = `
    package main
    
    func testASM()
    
    func main() {
    	testASM()
    }
    `
    
    func objdumpOutput(t *testing.T, mname, source string) []byte {
    	tmpdir, err := os.MkdirTemp("", mname)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 23:16:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. src/net/http/httptrace/trace_test.go

    		t.Errorf("got %q; want %q", got, want)
    	}
    }
    
    func TestCompose(t *testing.T) {
    	var buf strings.Builder
    	var testNum int
    
    	connectStart := func(b byte) func(network, addr string) {
    		return func(network, addr string) {
    			if addr != "addr" {
    				t.Errorf(`%d. args for %q case = %q, %q; want addr of "addr"`, testNum, b, network, addr)
    			}
    			buf.WriteByte(b)
    		}
    	}
    
    	tests := [...]struct {
    		trace, old *ClientTrace
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top