Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 197 for _abc (0.12 sec)

  1. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

        this.server = server
      }
    
      @Test
      fun suspendCall() {
        runTest {
          server.enqueue(MockResponse(body = "abc"))
    
          val call = client.newCall(request)
    
          call.executeAsync().use {
            withContext(Dispatchers.IO) {
              assertThat(it.body.string()).isEqualTo("abc")
            }
          }
        }
      }
    
      @Test
      fun timeoutCall() {
        runTest {
          server.enqueue(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. test/typeparam/issue48617.go

    type Foo[T any] interface {
    	CreateBar() Bar[T]
    }
    
    type Bar[T any] func() Bar[T]
    
    func (f Bar[T]) CreateBar() Bar[T] {
    	return f
    }
    
    func abc[T any]() {
    	var b Bar[T] = func() Bar[T] {
    		var b Bar[T]
    		return b
    	}
    	var _ Foo[T] = b()
    }
    
    func main() {
    	abc[int]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 446 bytes
    - Viewed (0)
  3. test/codegen/maps.go

    func AccessInt2(m map[int]int) bool {
    	// amd64:"MOV[LQ]\t[$]5"
    	_, ok := m[5]
    	return ok
    }
    
    func AccessString1(m map[string]int) int {
    	// amd64:`.*"abc"`
    	return m["abc"]
    }
    
    func AccessString2(m map[string]int) bool {
    	// amd64:`.*"abc"`
    	_, ok := m["abc"]
    	return ok
    }
    
    // ------------------- //
    //  String Conversion  //
    // ------------------- //
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 15:51:32 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/PreprocessingReaderTest.groovy

        }
    
        def "reads single line"() {
            expect:
            def reader = new PreprocessingReader(new StringReader("abc(123)"))
            def result = new StringBuilder()
            reader.readNextLine(result)
            result.toString() == "abc(123)"
            !reader.readNextLine(result)
        }
    
        def "reads multiple lines"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultSetPropertyTest.groovy

            given:
            property.set(["123"] as Set)
            property.add("abc")
            property.addAll(Providers.of(["123", "abc", "123", "456"]))
            property.add("123")
            property.add("def")
    
            expect:
            property.get() as List == ["123", "abc", "456", "def"]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 13:43:02 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. test/typeparam/issue48030.go

    }
    
    func Seq2[T1 any, T2 any](v1 T1, v2 T2) Src[T2] {
    	return nil
    }
    
    func main() {
    	// Type args fully supplied
    	Seq[int]()
    	// Partial inference of type args
    	Seq2[int](5, "abc")
    	// Full inference of type args
    	Seq2(5, "abc")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 481 bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopySpecMatchingTest.groovy

        def canMatchFiles() {
            given:
            FileCopyDetails details1 = details('path/abc.txt')
            FileCopyDetails details2 = details('path/bcd.txt')
    
            Action matchingAction = Mock()
    
            when:
            copySpec.filesMatching("**/a*", matchingAction)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/regex.go

    //	<string>.findAll(<string>, <int>) <list <string>>
    //
    // Examples:
    //
    //	"abc 123".find('[0-9]*') // returns '123'
    //	"abc 123".find('xyz') // returns ''
    //	"123 abc 456".findAll('[0-9]*') // returns ['123', '456']
    //	"123 abc 456".findAll('[0-9]*', 1) // returns ['123']
    //	"123 abc 456".findAll('xyz') // returns []
    func Regex() cel.EnvOption {
    	return cel.Lib(regexLib)
    }
    
    var regexLib = &regex{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. internal/ioutil/ioutil_test.go

    		expected string
    	}{
    		{bytes.NewBuffer([]byte("")), 0, ""},
    		{bytes.NewBuffer([]byte("")), 1, ""},
    		{bytes.NewBuffer([]byte("abc")), 0, "abc"},
    		{bytes.NewBuffer([]byte("abc")), 1, "bc"},
    		{bytes.NewBuffer([]byte("abc")), 2, "c"},
    		{bytes.NewBuffer([]byte("abc")), 3, ""},
    		{bytes.NewBuffer([]byte("abc")), 4, ""},
    	}
    	for i, testCase := range testCases {
    		r := NewSkipReader(testCase.src, testCase.skipLen)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. pkg/apis/autoscaling/v1/defaults_test.go

    					Annotations: map[string]string{
    						autoscaling.HorizontalPodAutoscalerConditionsAnnotation: "abc",
    						autoscaling.MetricSpecsAnnotation:                       "abc",
    						autoscaling.BehaviorSpecsAnnotation:                     "abc",
    						autoscaling.MetricStatusesAnnotation:                    "abc",
    					},
    				},
    			},
    			test: "test random value for Annotations",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top