Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 558 for arg2 (0.02 seconds)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d.py

    
    def test_internal_error(mod: ModuleType):
        client = TestClient(mod.app)
        with pytest.raises(mod.InternalError) as exc_info:
            client.get("/items/portal-gun")
        assert (
            exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick"
        )
    
    
    def test_internal_server_error(mod: ModuleType):
        client = TestClient(mod.app, raise_server_exceptions=False)
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. main.go

    //go:generate go install tool
    
    import (
    	"os"
    
    	// MUST be first import.
    	_ "github.com/minio/minio/internal/init"
    
    	minio "github.com/minio/minio/cmd"
    )
    
    func main() {
    	minio.Main(os.Args)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 24 23:34:11 GMT 2025
    - 1004 bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt

     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    
    object ExternalHttp2Example {
      @JvmStatic
      fun main(args: Array<String>) {
        val client =
          OkHttpClient
            .Builder()
            .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
            .build()
        val call =
          client.newCall(
            Request
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  4. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/cisupport/CIDetectorHelperRunner.java

     */
    package org.apache.maven.cling.invoker.cisupport;
    
    import java.util.List;
    
    import org.apache.maven.api.cli.cisupport.CIInfo;
    
    public class CIDetectorHelperRunner {
        public static void main(String[] args) {
            List<CIInfo> detect = CIDetectorHelper.detectCI();
            if (detect.isEmpty()) {
                System.out.print("NONE;");
            } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Apr 13 18:50:07 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  5. src/cmd/asm/internal/lex/lex_test.go

    			"#define A #define B THIS",
    			"A",
    			"B",
    		),
    		"THIS.\n",
    	},
    	{
    		"nested #define with args",
    		lines(
    			"#define A #define B(x) x",
    			"A",
    			"B(THIS)",
    		),
    		"THIS.\n",
    	},
    	/* This one fails. See comment in Slice.Col.
    	{
    		"nested #define with args",
    		lines(
    			"#define A #define B (x) x",
    			"A",
    			"B(THIS)",
    		),
    		"x.\n",
    	},
    	*/
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

            @Override
            protected Options parseCliOptions(LocalContext context) {
                try {
                    return CommonsCliOptions.parse(
                            "test", context.parserRequest.args().toArray(new String[0]));
                } catch (ParseException e) {
                    throw new IllegalArgumentException(e);
                }
            }
        };
    
        @Test
        void happy() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new Authenticate().run();
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 1.9K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java

            .url(server.url("/"))
            .build());
        Response response = call.execute();
        System.out.println(response.handshake().tlsVersion());
      }
    
      public static void main(String... args) throws Exception {
        new HttpsServer().run();
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 02 14:04:37 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  9. samples/guide/src/main/java/okhttp3/guide/PostExample.java

            + "{'name':'" + player2 + "','history':[6,10,5,10,10],'color':-48060,'total':41}"
            + "]}";
      }
    
      public static void main(String[] args) throws IOException {
        PostExample example = new PostExample();
        String json = example.bowlingJson("Jesse", "Jake");
        String response = example.post("http://www.roundsapp.com/post", json);
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new CheckHandshake().run();
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 2.1K bytes
    - Click Count (0)
Back to Top