- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 7,058 for expectEq (0.12 sec)
-
cmd/import-boss/main_test.go
if ret != tc.expect { t.Errorf("[%d] expected %v, got %v: %q", i, tc.expect, ret, tc.input) } } } func TestHasPathPrefix(t *testing.T) { cases := []struct { base string pfx string expect bool }{{ base: "", pfx: "", expect: true, }, { base: "/foo/bar", pfx: "", expect: true, }, { base: "", pfx: "/foo", expect: false, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 8.8K bytes - Viewed (0) -
pkg/credentialprovider/config_test.go
if err != nil { t.Errorf("Received unexpected error: %v", err) } if !reflect.DeepEqual(expect, output) { t.Errorf("Received unexpected output. Expected %#v, got %#v", expect, output) } } func TestDockerConfigEntryJSONDecode(t *testing.T) { tests := []struct { input []byte expect DockerConfigEntry fail bool }{ // simple case, just decode the fields {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 10.7K bytes - Viewed (0) -
tensorflow/cc/experimental/base/tests/tensor_test.cc
ASSERT_TRUE(status.ok()) << status.message(); EXPECT_EQ(tensor.dims(), 1); EXPECT_EQ(tensor.dtype(), dtype); absl::Span<const typename TypeParam::type> tensor_view( reinterpret_cast<typename TypeParam::type*>(tensor.data()), value.size()); EXPECT_EQ(tensor_view[0], 42); EXPECT_EQ(tensor_view[1], 100); EXPECT_EQ(tensor_view[2], 0); EXPECT_EQ(tensor_view[3], 1); EXPECT_EQ(tensor_view[4], 4); EXPECT_EQ(tensor_view[5], 29);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 09:56:08 UTC 2024 - 6K bytes - Viewed (0) -
operator/pkg/util/progress/progress_test.go
testBuf := io.Writer(buf) testWriter = &testBuf expected := "" expect := func(e string) { t.Helper() // In buffer mode we don't overwrite old data, so we are constantly appending to the expected newExpected := expected + "\n" + e if newExpected != buf.String() { t.Fatalf("expected '%v', \ngot '%v'", newExpected, buf.String()) } expected = newExpected } p := NewLog()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 19:23:44 UTC 2024 - 2.1K bytes - Viewed (0) -
pkg/test/util/yml/parts_test.go
parts := yml.SplitString(c.doc) g := NewWithT(t) g.Expect(parts).To(Equal(expected)) }) } } func TestSplitWithNestedDocument(t *testing.T) { doc := ` b b1 --- b2 ` expected := []string{ `b b1 --- b2`, } g := NewWithT(t) parts := yml.SplitString(doc) g.Expect(parts).To(Equal(expected)) } func TestJoinRemovesEmptyParts(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt
mkdir tmp3 mkdir tmp4 mkdir tmp5 # First build: no external linking expected go build -ldflags=-tmpdir=tmp1 -o $devnull ./noUseOfCgo & # Second build: using only "runtime/cgo", expect internal linking. go build -ldflags=-tmpdir=tmp2 -o $devnull ./usesInternalCgo & # Third build: program uses only "runtime/cgo", so we would normally # expect internal linking, except that cflags contain suspicious entries
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 25 18:16:01 UTC 2023 - 6.3K bytes - Viewed (0) -
pkg/kubelet/eviction/mock_threshold_notifier_test.go
return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockCgroupNotifier) EXPECT() *MockCgroupNotifierMockRecorder { return m.recorder } // Start mocks base method. func (m *MockCgroupNotifier) Start(eventCh chan<- struct{}) { m.ctrl.T.Helper() m.ctrl.Call(m, "Start", eventCh) } // Start indicates an expected call of Start.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 13.2K bytes - Viewed (0) -
pilot/pkg/model/addressmap_test.go
newMap func() *model.AddressMap expected int }{ { name: "nil addresses map", newMap: func() *model.AddressMap { return nil }, expected: 0, }, { name: "empty addresses map", newMap: func() *model.AddressMap { m := model.AddressMap{} m.AddAddressesFor(c1ID, make([]string, 0)) return &m }, expected: 0, }, { name: "non-empty addresses map",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/configurationCache/problemsGroovy/tests/configurationCacheProblemsGroovy.sample.conf
commands: [{ executable: gradle args: "--rerun-tasks someTask -DsomeDestination=dest" expect-failure: true expected-output-file: fail.out allow-additional-output: true allow-disordered-output: true },{ executable: gradle args: "--rerun-tasks --configuration-cache-problems=warn someTask -DsomeDestination=dest" expect-failure: false expected-output-file: store.out allow-additional-output: true }, { executable: gradle
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 627 bytes - Viewed (0) -
tensorflow/cc/experimental/base/tests/tensorhandle_test.cc
EXPECT_EQ(tensor.dims(), 1); EXPECT_EQ(tensor.dtype(), dtype); absl::Span<const typename TypeParam::type> tensor_view( reinterpret_cast<typename TypeParam::type*>(tensor.data()), value.size()); EXPECT_EQ(tensor_view[0], 42); EXPECT_EQ(tensor_view[1], 100); EXPECT_EQ(tensor_view[2], 0); EXPECT_EQ(tensor_view[3], 1); EXPECT_EQ(tensor_view[4], 4);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 09:56:08 UTC 2024 - 6.9K bytes - Viewed (0)