- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 29 for testclock (0.36 sec)
-
src/test/java/org/codelibs/core/io/CloseableUtilTest.java
import java.io.OutputStream; import org.junit.Test; /** * @author shot */ public class CloseableUtilTest { /** * @throws Exception */ @Test public void testClose() throws Exception { final NotifyOutputStream out = new NotifyOutputStream(); CloseableUtil.close(out); assertThat(out.getNotify(), is("closed")); } /** * @throws Exception
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/native/testing-native/src/main/java/org/gradle/nativeplatform/test/xctest/internal/execution/XCTestExecuter.java
throw new UnsupportedOperationException(); } public IdGenerator<?> getIdGenerator() { return new LongIdGenerator(); } @Inject public Clock getClock() { throw new UnsupportedOperationException(); } @Inject public Clock getTimeProvider() { throw new UnsupportedOperationException(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8.1K bytes - Viewed (0) -
src/html/template/clone_test.go
err = added.ExecuteTemplate(b, "a", "1>0") if err != nil { t.Fatal(err) } if got, want := b.String(), ` 1>0 <a href=" 1%3e0 "></a>`; got != want { t.Errorf("got %q want %q", got, want) } } func TestClone(t *testing.T) { // The {{.}} will be executed with data "<i>*/" in different contexts. // In the t0 template, it will be in a text context. // In the t1 template, it will be in a URL context.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:48:16 UTC 2022 - 8K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/MavenProjectTest.java
+ MavenProject.EMPTY_PROJECT_VERSION, project.getId()); } @Test void testClone() throws Exception { File f = getFileForClasspathResource("canonical-pom.xml"); MavenProject projectToClone = getProject(f); MavenProject clonedProject = projectToClone.clone();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sat Apr 15 17:24:20 UTC 2023 - 8K bytes - Viewed (0) -
src/maps/maps_test.go
t.Errorf("EqualFunc(%v, %v, equalNaN) = false, want true", mf, mf) } if !EqualFunc(m1, m2, equalIntStr) { t.Errorf("EqualFunc(%v, %v, equalIntStr) = false, want true", m1, m2) } } func TestClone(t *testing.T) { mc := Clone(m1) if !Equal(mc, m1) { t.Errorf("Clone(%v) = %v, want %v", m1, mc, m1) } mc[16] = 32 if Equal(mc, m1) { t.Errorf("Equal(%v, %v) = true, want false", mc, m1) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go
`, }, } for tn, tc := range testcases { t.Run(tn, func(t *testing.T) { metrics.Metrics.Reset() metrics.Metrics.SetClock(testingclock.NewFakeClock(time.Now())) d := dialerCreator{ connector: &fakeProxyServerConnector{ connectorErr: tc.connectorErr, proxierErr: tc.proxierErr, }, options: metricsOptions{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 26 22:41:29 UTC 2023 - 12.3K bytes - Viewed (0) -
src/text/template/multi_test.go
const ( cloneText1 = `{{define "a"}}{{template "b"}}{{template "c"}}{{end}}` cloneText2 = `{{define "b"}}b{{end}}` cloneText3 = `{{define "c"}}root{{end}}` cloneText4 = `{{define "c"}}clone{{end}}` ) func TestClone(t *testing.T) { // Create some templates and clone the root. root, err := New("root").Parse(cloneText1) if err != nil { t.Fatal(err) } _, err = root.Parse(cloneText2) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 10:48:29 UTC 2022 - 11.7K bytes - Viewed (0) -
src/go/types/check_test.go
const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32) testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, false, withSizes(&StdSizes{4, 4})) } func TestCheck(t *testing.T) { old := buildcfg.Experiment.RangeFunc defer func() { buildcfg.Experiment.RangeFunc = old }() buildcfg.Experiment.RangeFunc = true DefPredeclaredTestFuncs()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
const src = `package issue47243; var a uint64; var _ = a << uint64(4294967296)` // uint64(1<<32) testFiles(t, []string{"p.go"}, [][]byte{[]byte(src)}, 0, false, withSizes(&StdSizes{4, 4})) } func TestCheck(t *testing.T) { old := buildcfg.Experiment.RangeFunc defer func() { buildcfg.Experiment.RangeFunc = old }() buildcfg.Experiment.RangeFunc = true DefPredeclaredTestFuncs()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0) -
pkg/slices/slices_test.go
result := Reverse(tc.input) if diff := cmp2.Diff(tc.expected, result); diff != "" { t.Errorf("Reverse() mismatch (-want +got):\n%s", diff) } }) } } func TestClone(t *testing.T) { tests := []struct { name string slice []interface{} }{ { name: "Empty", slice: []interface{}{}, }, { name: "Single Element",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0)