Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 217 for mock (0.13 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.internal.platform.Platform
    import okio.Buffer
    
    /** An HTTP request that came into the mock web server. */
    @ExperimentalOkHttpApi
    class RecordedRequest(
      val requestLine: String,
      /** All headers. */
      val headers: Headers,
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  2. cni/pkg/nodeagent/fakes_test.go

    }
    
    func (f *fakeZtunnel) PodAdded(ctx context.Context, pod *corev1.Pod, netns Netns) error {
    	f.addedPods.Add(1)
    	return f.addError
    }
    
    func (f *fakeZtunnel) Close() error {
    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. docs/sts/dex.md

    time="2020-07-12T20:45:50Z" level=info msg="config storage: sqlite3"
    time="2020-07-12T20:45:50Z" level=info msg="config static client: Example App"
    time="2020-07-12T20:45:50Z" level=info msg="config connector: mock"
    time="2020-07-12T20:45:50Z" level=info msg="config connector: local passwords enabled"
    time="2020-07-12T20:45:50Z" level=info msg="config response types accepted: [code token id_token]"
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 21 06:38:06 GMT 2023
    - 3.8K bytes
    - Viewed (1)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

          when (code) {
            in 100..199 -> "Informational"
            in 200..299 -> "OK"
            in 300..399 -> "Redirection"
            in 400..499 -> "Client Error"
            in 500..599 -> "Server Error"
            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    
      fun clearHeaders() =
        apply {
          headersBuilder = Headers.Builder()
        }
    
      fun addHeader(header: String) =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Stopwatch.java

     * that is already in the desired state.
     *
     * <p>When testing code that uses this class, use {@link #createUnstarted(Ticker)} or {@link
     * #createStarted(Ticker)} to supply a fake or mock ticker. This allows you to simulate any valid
     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  6. gradle/libs.versions.toml

    mockserver = { module = "org.testcontainers:mockserver", version.ref = "testcontainers" }
    mockserver-client = { module = "org.mock-server:mockserver-client-java-no-dependencies", version.ref = "mockserverClient" }
    nativeImageSvm = { module = "org.graalvm.nativeimage:svm", version.ref = "graalvm" }
    openjsse = "org.openjsse:openjsse:1.1.14"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 22 19:34:32 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Stopwatch.java

     * that is already in the desired state.
     *
     * <p>When testing code that uses this class, use {@link #createUnstarted(Ticker)} or {@link
     * #createStarted(Ticker)} to supply a fake or mock ticker. This allows you to simulate any valid
     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  8. internal/lock/lock.go

    	*LockedFile
    	mutex sync.Mutex
    	refs  int // Holds read lock refs.
    }
    
    // IsClosed - Check if the rlocked file is already closed.
    func (r *RLockedFile) IsClosed() bool {
    	r.mutex.Lock()
    	defer r.mutex.Unlock()
    	return r.refs == 0
    }
    
    // IncLockRef - is used by called to indicate lock refs.
    func (r *RLockedFile) IncLockRef() {
    	r.mutex.Lock()
    	r.refs++
    	r.mutex.Unlock()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  9. .github/workflows/lock.yml

    name: 'Lock Threads'
    
    on:
      schedule:
        - cron: '0 0 * * *'
      workflow_dispatch:
    
    permissions:
      issues: write
    
    concurrency:
      group: lock
    
    jobs:
      action:
        runs-on: ubuntu-latest
        steps:
          - uses: dessant/lock-threads@v3
            with:
              github-token: ${{ github.token }}
              issue-inactive-days: '365'
              exclude-any-issue-labels: 'do-not-close'
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 30 03:27:43 GMT 2022
    - 447 bytes
    - Viewed (0)
  10. cmd/namespace-lock.go

    	*lsync.LRWMutex
    }
    
    // nsLockMap - namespace lock map, provides primitives to Lock,
    // Unlock, RLock and RUnlock.
    type nsLockMap struct {
    	// Indicates if namespace is part of a distributed setup.
    	isDistErasure bool
    	lockMap       map[string]*nsLock
    	lockMapMutex  sync.Mutex
    }
    
    // Lock the namespace resource.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
Back to top