- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 117 for mockito (0.11 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
// We buffer some outbound data and headers and confirm that the END_STREAM flag comes with the // headers (and not with the data). // Write the mocking script. for the client peer.setClient(true) // Write the mocking script. peer.sendFrame().settings(Settings()) peer.sendFrame().headers(true, 3, headerEntries("client", "abc")) peer.acceptFrame() // ACK
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 75.4K bytes - Viewed (0) -
src/syscall/mkerrors.sh
' includes_Darwin=' #define _DARWIN_C_SOURCE #define KERNEL #define _DARWIN_USE_64_BIT_INODE #include <sys/types.h> #include <sys/event.h> #include <sys/ptrace.h> #include <sys/socket.h> #include <sys/sockio.h> #include <sys/sysctl.h> #include <sys/mman.h> #include <sys/wait.h> #include <net/bpf.h> #include <net/if.h> #include <net/if_types.h> #include <net/route.h> #include <netinet/in.h> #include <netinet/ip.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 06 21:22:22 UTC 2022 - 10.7K bytes - Viewed (0) -
platforms/ide/tooling-api-builders/build.gradle.kts
runtimeOnly(project(":composite-builds")) runtimeOnly(libs.groovy) // for 'Closure' testCompileOnly(project(":toolchains-jvm")) { because("JavaLauncher is required for mocking Test.") } testImplementation(project(":file-collections")) testImplementation(project(":platform-jvm")) testImplementation(testFixtures(project(":core"))) } strictCompile {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 1.5K bytes - Viewed (0) -
test-site/test/ApplicationTest.java
import play.twirl.api.Content; import static play.test.Helpers.*; import static org.fest.assertions.Assertions.*; /** * * Simple (JUnit) tests that can call all parts of a play app. * If you are interested in mocking a whole application, see the wiki for more details. * */ public class ApplicationTest { @Test public void simpleCheck() { int a = 1 + 1; assertThat(a).isEqualTo(2); }
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Mon Apr 20 08:41:37 UTC 2015 - 1.1K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/state/testing/util.go
limitations under the License. */ package testing import "k8s.io/kubernetes/pkg/kubelet/checkpointmanager" var _ checkpointmanager.Checkpoint = &MockCheckpoint{} // MockCheckpoint struct is used for mocking checkpoint values in testing type MockCheckpoint struct { Content string } // MarshalCheckpoint returns fake content func (mc *MockCheckpoint) MarshalCheckpoint() ([]byte, error) { return []byte(mc.Content), nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 15 16:34:53 UTC 2018 - 1.2K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient.go
"time" "github.com/containernetworking/cni/pkg/skel" cniv1 "github.com/containernetworking/cni/pkg/types/100" "istio.io/istio/cni/pkg/nodeagent" ) // newCNIClient is a unit test override variable for mocking. var newCNIClient = buildClient // An udsCore write entries to an UDS server with HTTP Post. Log messages will be encoded into a JSON array. type CNIEventClient struct { client *http.Client url string }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh
#include <sys/kern_control.h> #include <sys/types.h> #include <sys/event.h> #include <sys/ptrace.h> #include <sys/select.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/un.h> #include <sys/sockio.h> #include <sys/sys_domain.h> #include <sys/sysctl.h> #include <sys/mman.h> #include <sys/mount.h> #include <sys/utsname.h> #include <sys/wait.h> #include <sys/xattr.h> #include <sys/vsock.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 20.2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/builder_flags.go
builder *resource.Builder } // Do finds you resources to check func (b *ResourceFindBuilderWrapper) Do() resource.Visitor { return b.builder.Do() } // ResourceFinder allows mocking the resource builder // TODO resource builders needs to become more interfacey type ResourceFinder interface { Do() resource.Visitor } // ResourceFinderFunc is a handy way to make a ResourceFinder
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 13 10:28:09 UTC 2021 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/cacheable_object.go
"bytes" "fmt" "io" "testing" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" ) // nonCacheableTestObject implements json.Marshaler and proto.Marshaler interfaces // for mocking purpose. // +k8s:deepcopy-gen=false type noncacheableTestObject struct { gvk schema.GroupVersionKind } // MarshalJSON implements json.Marshaler interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 30 06:58:54 UTC 2019 - 6.1K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
// remove the response from the list of predefined responses and add it to request object for mocking. fh.responses = fh.responses[1:] } var err error if fh.errs != nil && len(fh.errs) > 0 { err = fh.errs[0] // remove the error from the list of predefined errors and add it to request object for mocking. fh.errs = fh.errs[1:] } req := &fakeRequest{cmd: cmd, flags: flags, response: response, err: err}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0)