- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 120 for bad (0.13 sec)
-
docs_src/app_testing/app_b/test_main.py
assert response.status_code == 200 assert response.json() == { "id": "foo", "title": "Foo", "description": "There goes my hero", } def test_read_item_bad_token(): response = client.get("/items/foo", headers={"X-Token": "hailhydra"}) assert response.status_code == 400 assert response.json() == {"detail": "Invalid X-Token header"}
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/HostAndPortTest.java
public void testFromStringBadDefaultPort() { // Well-formed strings with bad default ports. checkFromStringCase("gmail.com:81", -1, "gmail.com", 81, true); checkFromStringCase("192.0.2.2:83", -1, "192.0.2.2", 83, true); checkFromStringCase("[2001::2]:85", -1, "2001::2", 85, true); checkFromStringCase("goo.gl:65535", 65536, "goo.gl", 65535, true); // No port, bad default. checkFromStringCase("google.com", -1, "google.com", -1, false);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 17 11:19:47 GMT 2023 - 9.6K bytes - Viewed (0) -
guava/src/com/google/common/annotations/VisibleForTesting.java
* Annotates a program element that exists, or is more widely visible than otherwise necessary, only * for use in test code. * * <p><b>Do not use this interface</b> for public or protected declarations: it is a fig leaf for * bad design, and it does not prevent anyone from using the declaration---and experience has shown * that they will. If the method breaks the encapsulation of its class, then its internal
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jan 30 22:25:16 GMT 2023 - 1.3K bytes - Viewed (0) -
src/bufio/export_test.go
// Exported for testing only. import ( "unicode/utf8" ) var IsSpace = isSpace const DefaultBufSize = defaultBufSize func (s *Scanner) MaxTokenSize(n int) { if n < utf8.UTFMax || n > 1e9 { panic("bad max token size") } if n < len(s.buf) { s.buf = make([]byte, n) } s.maxTokenSize = n } // ErrOrEOF is like Err, but returns EOF. Used to test a corner case. func (s *Scanner) ErrOrEOF() error {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 17:17:44 GMT 2017 - 597 bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/WinError.java
*/ public static final int ERROR_SUCCESS = 0; public static final int ERROR_ACCESS_DENIED = 5; public static final int ERROR_REQ_NOT_ACCEP = 71; public static final int ERROR_BAD_PIPE = 230; public static final int ERROR_PIPE_BUSY = 231; public static final int ERROR_NO_DATA = 232; public static final int ERROR_PIPE_NOT_CONNECTED = 233; public static final int ERROR_MORE_DATA = 234;
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Fri Mar 22 21:10:40 GMT 2019 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/EscapersTest.java
try { unicodeEscaper.escape("\uD800x\uDC00"); fail("should have failed for bad Unicode input"); } catch (IllegalArgumentException e) { // pass } assertEquals("<lo><hi>", charEscaper.escape("\uDC00\uD800")); try { unicodeEscaper.escape("\uDC00\uD800"); fail("should have failed for bad Unicode input"); } catch (IllegalArgumentException e) { // pass } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CountingOutputStream.java
count += len; } @Override public void write(int b) throws IOException { out.write(b); count++; } // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior: // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream. // It should flush itself if necessary. @Override public void close() throws IOException { out.close();
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 28 20:13:02 GMT 2023 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java
throw new RuntimeException("bad constructor"); } public ExceptionWithGoodAndBadConstructor(Throwable cause) { super(cause); } } static final class ExceptionWithBadConstructor extends Exception { public ExceptionWithBadConstructor(String message, Throwable cause) { throw new RuntimeException("bad constructor"); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 13:46:56 GMT 2023 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/annotations/VisibleForTesting.java
* Annotates a program element that exists, or is more widely visible than otherwise necessary, only * for use in test code. * * <p><b>Do not use this interface</b> for public or protected declarations: it is a fig leaf for * bad design, and it does not prevent anyone from using the declaration---and experience has shown * that they will. If the method breaks the encapsulation of its class, then its internal
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jan 30 22:25:16 GMT 2023 - 1.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
fail("Null string should cause exception"); } catch (NullPointerException expected) { // Pass } } public void testBadStrings() { UnicodeEscaper e = SIMPLE_ESCAPER; String[] BAD_STRINGS = { String.valueOf(Character.MIN_LOW_SURROGATE), Character.MIN_LOW_SURROGATE + "xyz", "abc" + Character.MIN_LOW_SURROGATE, "abc" + Character.MIN_LOW_SURROGATE + "xyz",
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 6.2K bytes - Viewed (0)