Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for test_sum (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. subprojects/core/src/test/groovy/org/gradle/execution/commandline/CommandLineTaskConfigurerSpec.groovy

            public void setNotUsed(boolean notUsed) {
                throw new RuntimeException("Not used");
            }
    
            TestEnum anEnum
    
            @Option(option = "someEnum", description = "some enum value.")
            public void setEnum(TestEnum anEnum) {
                this.anEnum = anEnum;
            }
    
            @TaskAction
            public void dummy() {}
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 09 09:06:36 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/cgo/internal/testlife/testdata/main.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    // Run the game of life in C using Go for parallelization.
    
    package main
    
    import (
    	"flag"
    	"fmt"
    
    	"cgolife"
    )
    
    const MAXDIM = 100
    
    var dim = flag.Int("dim", 16, "board dimensions")
    var gen = flag.Int("gen", 10, "generations")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 803 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/teststdio/testdata/hello.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    package main
    
    import "cgostdio/stdio"
    
    func main() {
    	stdio.Stdout.WriteString(stdio.Greeting + "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 285 bytes
    - Viewed (0)
Back to top