Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for expected_substr (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top