Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 117 for mockito (0.18 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    // the second argument to the two arguments constructor.
    class GTEST_API_ ScopedFakeTestPartResultReporter
        : public TestPartResultReporterInterface {
     public:
      // The two possible mocking modes of this object.
      enum InterceptMode {
        INTERCEPT_ONLY_CURRENT_THREAD,  // Intercepts only thread local failures.
        INTERCEPT_ALL_THREADS           // Intercepts all failures.
      };
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    // the second argument to the two arguments constructor.
    class GTEST_API_ ScopedFakeTestPartResultReporter
        : public TestPartResultReporterInterface {
     public:
      // The two possible mocking modes of this object.
      enum InterceptMode {
        INTERCEPT_ONLY_CURRENT_THREAD,  // Intercepts only thread local failures.
        INTERCEPT_ALL_THREADS           // Intercepts all failures.
      };
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        taskFaker.runTasks()
      }
    
      private fun connectHttp2(
        peer: MockHttp2Peer,
        realConnection: RealConnection,
        maxConcurrentStreams: Int,
      ): Http2Connection {
        // Write the mocking script.
        val settings1 = Settings()
        settings1[Settings.MAX_CONCURRENT_STREAMS] = maxConcurrentStreams
        peer.sendFrame().settings(settings1)
        peer.acceptFrame() // ACK
        peer.sendFrame().ping(false, 2, 0)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy

                    @Inject
                    abstract FileLockManager getFileLockManager()
    
                    @Inject
                    abstract ProjectLayout getProjectLayout()
    
                    @TaskAction
                    void lockIt() {
                        def lock
                        try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	conn net.Conn
    
    	// Dialer is the dialer used to connect.  Used if non-nil.
    	Dialer *net.Dialer
    
    	// proxier knows which proxy to use given a request, defaults to http.ProxyFromEnvironment
    	// Used primarily for mocking the proxy discovery in tests.
    	proxier func(req *http.Request) (*url.URL, error)
    
    	// pingPeriod is a period for sending Ping frames over established
    	// connections.
    	pingPeriod time.Duration
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  6. cmd/kube-proxy/app/server_test.go

    func (s *fakeProxyServerError) Run(ctx context.Context) error {
    	for {
    		time.Sleep(2 * time.Second)
    		return fmt.Errorf("mocking error from ProxyServer.Run()")
    	}
    }
    
    // CleanupAndExit runs in the specified ProxyServer.
    func (s *fakeProxyServerError) CleanupAndExit() error {
    	return errors.New("mocking error from ProxyServer.CleanupAndExit()")
    }
    
    func TestAddressFromDeprecatedFlags(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. cmd/kube-proxy/app/server_linux_test.go

    			append:      true,
    			expectedErr: "content of the proxy server's configuration file was updated",
    		},
    		{
    			name:        "fake error",
    			proxyServer: new(fakeProxyServerError),
    			expectedErr: "mocking error from ProxyServer.Run()",
    		},
    	}
    
    	for _, tc := range testCases {
    		_, ctx := ktesting.NewTestContext(t)
    		file, tempDir, err := setUp()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. pilot/pkg/xds/discovery.go

    func (s *DiscoveryServer) handleUpdates(stopCh <-chan struct{}) {
    	debounce(s.pushChannel, stopCh, s.DebounceOptions, s.Push, s.CommittedUpdates)
    }
    
    // The debounce helper function is implemented to enable mocking
    func debounce(ch chan *model.PushRequest, stopCh <-chan struct{}, opts DebounceOptions, pushFn func(req *model.PushRequest), updateSent *atomic.Int64) {
    	var timeChan <-chan time.Time
    	var startDebounce time.Time
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 20:21:09 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Converter.java

     *       create a "fake" converter for a unit test. It is unnecessary (and confusing) to <i>mock</i>
     *       the {@code Converter} type using a mocking framework.
     *   <li>Extend this class and implement its {@link #doForward} and {@link #doBackward} methods.
     *   <li><b>Java 8+ users:</b> you may prefer to pass two lambda expressions or method references to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Converter.java

     *       create a "fake" converter for a unit test. It is unnecessary (and confusing) to <i>mock</i>
     *       the {@code Converter} type using a mocking framework.
     *   <li>Extend this class and implement its {@link #doForward} and {@link #doBackward} methods.
     *   <li><b>Java 8+ users:</b> you may prefer to pass two lambda expressions or method references to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top