Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 525 for args (0.09 sec)

  1. tests/callbacks_test.go

    		for _, c := range data.callbacks {
    			var v interface{} = callbacks.Create()
    			callMethod := func(s interface{}, name string, args ...interface{}) {
    				var argValues []reflect.Value
    				for _, arg := range args {
    					argValues = append(argValues, reflect.ValueOf(arg))
    				}
    
    				results := reflect.ValueOf(s).MethodByName(name).Call(argValues)
    				if len(results) > 0 {
    					v = results[0].Interface()
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

                }
                """.trimIndent()
            )
        }
    
        private
        fun run(vararg args: String) = GradleRunner.create()
            .withProjectDir(projectDir)
            .withTestKitDir(projectDir.resolve("test-kit"))
            .withPluginClasspath()
            .forwardOutput()
            .withArguments(*args)
    
        private
        fun assertArchivedFilesSeen(vararg archiveFileNames: String) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 14 12:35:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. buildscripts/gen-ldflags.go

    	if err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	return t.UTC()
    }
    
    func main() {
    	var version string
    	if len(os.Args) > 1 {
    		version = os.Args[1]
    	} else {
    		version = commitTime().Format(time.RFC3339)
    	}
    
    	fmt.Println(genLDFlags(version))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 16 23:10:48 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java

          logger.info(String.format("Received response for %s in %.1fms%n%s",
              request.url(), (t2 - t1) / 1e6d, response.headers()));
          return response;
        }
      }
    
      public static void main(String... args) throws Exception {
        new LoggingInterceptors().run();
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Jan 01 15:55:32 UTC 2016
    - 2K bytes
    - Viewed (0)
  5. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

        assertThat(request.header("If-Modified-Since")).isEqualTo(
          "Mon, 18 Aug 2014 15:16:06 GMT",
        )
      }
    
      companion object {
        fun fromArgs(vararg args: String): Main {
          return Main().apply {
            parse(args.toList())
          }
        }
    
        private fun bodyAsString(body: RequestBody?): String {
          return try {
            val buffer = Buffer()
            body!!.writeTo(buffer)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/CommonsCliEncryptOptions.java

    public class CommonsCliEncryptOptions extends CommonsCliOptions implements EncryptOptions {
        public static CommonsCliEncryptOptions parse(String[] args) throws ParseException {
            CLIManager cliManager = new CLIManager();
            return new CommonsCliEncryptOptions(Options.SOURCE_CLI, cliManager, cliManager.parse(args));
        }
    
        protected CommonsCliEncryptOptions(String source, CLIManager cliManager, CommandLine commandLine) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. cmd/net_test.go

    					t.Errorf("failed with different error, expected: '%v', found:'%v'.",
    						testCase.expectedErr, err)
    				}
    			}
    		})
    	}
    }
    
    func TestIsHostIP(t *testing.T) {
    	testCases := []struct {
    		args           string
    		expectedResult bool
    	}{
    		{"localhost", false},
    		{"localhost:9000", false},
    		{"example.com", false},
    		{"http://192.168.1.0", false},
    		{"http://192.168.1.0:9000", false},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 19 08:43:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. .github/workflows/check-markdown-links.yml

            with:
              # excluded:
              # - notes.md and notes-templates.md - because they are a part of user guide
              # - Kotlin's Module.md - because it's a part of the Kotlin DSL docs
              args: >
                --no-progress --offline '**/*.md' --include-fragments
                --exclude-path 'platforms/documentation/docs/src/docs/release/notes.md'
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 14 07:50:42 UTC 2024
    - 920 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial008c.py

    
    def test_fastapi_error(client: TestClient):
        with pytest.raises(FastAPIError) as exc_info:
            client.get("/items/portal-gun")
        assert "No response object was returned" in exc_info.value.args[0]
    
    
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008c import app
    
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/items/portal-gun")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

            Object p, Method calledMethod, @Nullable Object[] args) throws Throwable {
          assertEquals(method, calledMethod);
          assertEquals(method + " invoked more than once.", 0, called.get());
          for (int i = 0; i < passedArgs.length; i++) {
            assertEquals(
                "Parameter #" + i + " of " + method + " not forwarded", passedArgs[i], args[i]);
          }
          called.getAndIncrement();
          return returnValue;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top