- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for expected_substr (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc
TF_ASSERT_OK(DumpTextualIRToFile(MlirDumpConfig().emit_location_information(), graph, /*flib_def=*/nullptr, &file)); string expected_substr = R"(loc(#loc))"; ExpectHasSubstr(actual, expected_substr); } TEST(Dump, DumpToTFG) { Graph graph(OpRegistry::Global()); Node* node; TF_CHECK_OK(NodeBuilder("A", "NoOp").Finalize(&graph, &node)); string actual;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/update-notifier_test.go
"github.com/minio/minio/internal/color" ) // Tests update notifier string builder. func TestPrepareUpdateMessage(t *testing.T) { testCases := []struct { older time.Duration dlURL string expectedSubStr string }{ // Testcase index 0 {72 * time.Hour, "my_download_url", "3 days before the latest release"},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0) -
pkg/test/framework/components/echo/check/checkers.go
} return nil } if err == nil { return fmt.Errorf("expected gRPC error with status %s, but got OK", expected.String()) } expectedSubstr := fmt.Sprintf("code = %s", expected.String()) if strings.Contains(err.Error(), expectedSubstr) { return nil } return fmt.Errorf("expected gRPC response code %q. Instead got: %w", expected.String(), err) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 03 16:19:07 UTC 2023 - 17.5K bytes - Viewed (0) -
src/crypto/tls/handshake_server_test.go
err = hs.pickCipherSuite() } } s.Close() t.Helper() if len(expectedSubStr) == 0 { if err != nil && err != io.EOF { t.Errorf("Got error: %s; expected to succeed", err) } } else if err == nil || !strings.Contains(err.Error(), expectedSubStr) { t.Errorf("Got error: %v; expected to match substring '%s'", err, expectedSubStr) } } func TestSimpleError(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 64.7K bytes - Viewed (0)