Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for test_sum (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/ProtocolToModelAdapterTest.groovy

        }
    
        def adaptsEnum() {
            TestProtocolModel protocolModel = Mock()
            _ * protocolModel.getTestEnum() >> TestEnum.FIRST
    
            expect:
            TestModel model = adapter.adapt(TestModel.class, protocolModel)
            model.testEnum == TestEnum.FIRST
        }
    
        def adaptsStringToEnum() {
            TestProtocolModel protocolModel = Mock()
            _ * protocolModel.getTestEnum() >> "SECOND"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionReaderTest.groovy

            @Option(description = "Descr enumListValue")
            final ListProperty<TestEnum> enumListValue
    
            @Option(description = "Descr enumSetValue")
            final SetProperty<TestEnum> enumSetValue
    
            @Option(description = "Descr enumValue")
            final Property<TestEnum> enumValue
    
            @Option(description = "Descr integerValue")
            final Property<Integer> integerValue
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 12:45:01 UTC 2023
    - 33.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/cgo_test.go

    func TestCheckConst(t *testing.T)            { testCheckConst(t) }
    func TestConst(t *testing.T)                 { testConst(t) }
    func TestCthread(t *testing.T)               { testCthread(t) }
    func TestEnum(t *testing.T)                  { testEnum(t) }
    func TestNamedEnum(t *testing.T)             { testNamedEnum(t) }
    func TestCastToEnum(t *testing.T)            { testCastToEnum(t) }
    func TestErrno(t *testing.T)                 { testErrno(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. test/typeparam/mapsimp.dir/main.go

    	}
    	a.Add(mc, map[int]int{16: 32})
    	want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32}
    	if !a.Equal(mc, want) {
    		panic(fmt.Sprintf("a.Add result = %v, want %v", mc, want))
    	}
    }
    
    func TestSub() {
    	mc := a.Copy(m1)
    	a.Sub(mc, mc)
    	if len(mc) > 0 {
    		panic(fmt.Sprintf("a.Sub(%v, %v) = %v, want empty map", m1, m1, mc))
    	}
    	mc = a.Copy(m1)
    	a.Sub(mc, map[int]int{1: 0})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top