Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 172 for testOk2 (0.15 sec)

  1. tests/test_tutorial/test_request_files/test_tutorial002.py

        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDeclaredSubstitutionsIntegrationTest.groovy

            given:
            dependency "org.test:buildB:1.0"
            dependency buildB, "org.test:b2:1.0"
    
            when:
            includeBuild buildB, """
                substitute module("org.test:buildB") using project(":")
                substitute module("org.test:b2:1.0") using project(":b2")
    """
    
            then:
            resolvedGraph {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 01 20:36:42 UTC 2022
    - 14.4K bytes
    - Viewed (0)
  3. src/regexp/exec2_test.go

    // it is a very expensive test and takes too long.
    func TestRE2Exhaustive(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping TestRE2Exhaustive during short test")
    	}
    	testRE2(t, "testdata/re2-exhaustive.txt.bz2")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 508 bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

    import org.junit.Test;
    
    public class IncludedTest {
        @Test
        public void testOK() {
        }
    }
    """
            sourcePath.file("com/example/ExcludedTest.java") << """
    package com.example;
    import org.junit.Test;
    import org.junit.experimental.categories.Category;
    
    @Category(Exclude.class)
    public class ExcludedTest {
        @Test
        public void testOK() {
        }
    }
    """
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

            includePaths << includeDir
    
            macros << macro("TEST", '"test.h"')
            macroFunctions << macroFunction("TEST1", "TEST")
            macros << macro("TEST2", "TEST1()")
            macros << macro("TEST3", "TEST2")
            macros << unresolvableMacro("IGNORE")
    
            expect:
            def result = resolve(include('TEST3'))
            result.complete
            result.files.file as List == [header1]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  6. test/fixedbugs/issue24449.go

    	if len(a) >= len(b) {
    		atomic.AddInt64(&cnt64, 8)
    	}
    	if len(a) <= len(b) {
    		atomic.AddInt64(&cnt64, 16)
    	}
    	return atomic.LoadInt64(&cnt64) == 31
    }
    
    func main() {
    	if !test32([]int{}, []int{}) {
    		panic("test32")
    	}
    	if !test64([]int{}, []int{}) {
    		panic("test64")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 09:44:50 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  7. test/fixedbugs/issue8004.go

    	H *reflect.SliceHeader
    	P *[]int
    }
    
    func test2() {
    	var all []T
    	for i := 0; i < 100; i++ {
    		p := new([]int)
    		*p = append(*p, 1, 2, 3, 4)
    		h := (*reflect.SliceHeader)(unsafe.Pointer(p))
    		all = append(all, T{H: h}, T{P: p})
    	}
    	runtime.GC()
    	for i := 0; i < 100; i++ {
    		p := *all[2*i+1].P
    		if p[0] != 1 || p[1] != 2 || p[2] != 3 || p[3] != 4 {
    			println("BUG test2: bad slice at index", i, p[0], p[1], p[2], p[3])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/swift/testFiltering/kotlin/src/test/swift/SomeIntegTest.swift

    import XCTest
    
    class SomeIntegTest: XCTestCase {
        public static var allTests = [
            ("test1", test1),
            ("test2", test2)
        ]
        func test1() {}
        func test2() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 183 bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestReportTest.groovy

            def test1 = test("test1")
            def test2 = test("test2")
            def test3 = test("test3")
    
            when:
            reportTask.testResults.from(test1.binaryResultsDirectory)
            reportTask.testResults.from([[test2.binaryResultsDirectory], test3.binaryResultsDirectory])
    
            then:
            reportTask.testResults.files as List == [test1, test2, test3]*.binaryResultsDirectory*.getAsFile()*.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. test/fixedbugs/issue65962.go

    // run
    
    // Copyright 2024 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.
    
    package main
    
    func main() {
    	test1()
    	test2()
    }
    
    type I interface {
    	f()
    	g()
    	h()
    }
    
    //go:noinline
    func ld[T any]() {
    	var x I
    	if _, ok := x.(T); ok {
    	}
    }
    
    func isI(x any) {
    	_ = x.(I)
    }
    
    func test1() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 18:30:40 UTC 2024
    - 625 bytes
    - Viewed (0)
Back to top