Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for expected_substr (0.59 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. src/crypto/x509/pem_decrypt_test.go

    	_, err := DecryptPEMBlock(block, []byte("foo"))
    	if err == nil {
    		t.Fatal("Bad PEM data decrypted successfully")
    	}
    	const expectedSubstr = "block size"
    	if e := err.Error(); !strings.Contains(e, expectedSubstr) {
    		t.Fatalf("Expected error containing %q but got: %q", expectedSubstr, e)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 20:03:55 UTC 2019
    - 8.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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