Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 149 for abc (0.15 sec)

  1. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

          Headers.Builder()
            .add("WWW-Authenticate", "Other abc==")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(
            listOf(Challenge("Other", mapOf(null to "abc=="))),
          )
      }
    
      @Test fun token68AndAuthParams() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Other abc==, realm=myrealm")
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val builder = MockResponse.Builder().body("ABC")
        assertThat(headersToList(builder)).containsExactly("Content-Length: 3")
        val response = builder.build()
        val body = Buffer()
        response.body!!.writeTo(body)
        assertThat(body.readUtf8()).isEqualTo("ABC")
      }
    
      @Test
      fun mockResponseAddHeader() {
        val builder =
          MockResponse.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    }
    
    func ExampleToValidUTF8() {
    	fmt.Printf("%s\n", bytes.ToValidUTF8([]byte("abc"), []byte("\uFFFD")))
    	fmt.Printf("%s\n", bytes.ToValidUTF8([]byte("a\xffb\xC0\xAFc\xff"), []byte("")))
    	fmt.Printf("%s\n", bytes.ToValidUTF8([]byte("\xed\xa0\x80"), []byte("abc")))
    	// Output:
    	// abc
    	// abc
    	// abc
    }
    
    func ExampleTrim() {
    	fmt.Printf("[%q]", bytes.Trim([]byte(" !!! Achtung! Achtung! !!! "), "! "))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. cmd/object-api-multipart_test.go

    		{
    			bucketNames[0], "asia", "asia/europe/", "abc", "", 0,
    			ListMultipartsInfo{},
    			fmt.Errorf("Invalid combination of uploadID marker '%s' and marker '%s'", "abc", "asia/europe/"), false,
    		},
    		{
    			// Contains a base64 padding character
    			bucketNames[0], "asia", "asia/europe", "abc=", "", 0,
    			ListMultipartsInfo{},
    			fmt.Errorf("Malformed upload id %s", "abc="), false,
    		},
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    @Tag("Slowish")
    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
          """
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: abc
          |
          |abcd
          |efgh
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: ijk
          |
          |ijkl
          |mnop
          |
          |--simple boundary--
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. cmd/dummy-data-generator_test.go

    		}
    	}
    	return true, ""
    }
    
    func TestCmpReaders(t *testing.T) {
    	{
    		r1 := bytes.NewReader([]byte("abc"))
    		r2 := bytes.NewReader([]byte("abc"))
    		ok, msg := cmpReaders(r1, r2)
    		if !(ok && msg == "") {
    			t.Fatalf("unexpected")
    		}
    	}
    
    	{
    		r1 := bytes.NewReader([]byte("abc"))
    		r2 := bytes.NewReader([]byte("abcd"))
    		ok, _ := cmpReaders(r1, r2)
    		if ok {
    			t.Fatalf("unexpected")
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ResponseJvmTest.kt

            }
          }
    
        assertThat(response.trailers()["a"]).isEqualTo("b")
      }
    
      @Test fun peekAfterReadingResponse() {
        val response = newResponse(responseBody("abc"))
        assertThat(response.body.string()).isEqualTo("abc")
    
        assertFailsWith<IllegalStateException> {
          response.peekBody(3)
        }
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. utils/utils_test.go

    		{"uint8", uint8(math.MaxUint8), "255"},
    		{"uint16", uint16(math.MaxUint16), "65535"},
    		{"uint32", uint32(math.MaxUint32), "4294967295"},
    		{"uint64", uint64(math.MaxUint64), "18446744073709551615"},
    		{"string", "abc", "abc"},
    		{"other", true, ""},
    	}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			if out := ToString(test.in); test.out != out {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

      @Test
      fun legalToExecuteTwiceCloning() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
    
        val request = Request(server.url("/"))
    
        val call = client.newCall(request)
        val response1 = call.execute()
    
        val cloned = call.clone()
        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

            .expect("A", "B", "C", "D", "E");
      }
    
      public void testFlatMap() {
        SpliteratorTester.of(
                () ->
                    CollectSpliterators.flatMap(
                        Arrays.spliterator(new String[] {"abc", "", "de", "f", "g", ""}),
                        (String str) -> Lists.charactersOf(str).spliterator(),
                        Spliterator.SIZED | Spliterator.DISTINCT | Spliterator.NONNULL,
                        7))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
Back to top