MCPcopy Create free account
hub / github.com/featureform/featureform / testFetchProvider

Function testFetchProvider

metadata/metadata_test.go:1915–1926  ·  view source on GitHub ↗
(t *testing.T, client *Client, fetcher providerFetcher)

Source from the content-addressed store, hash-verified

1913}
1914
1915func testFetchProvider(t *testing.T, client *Client, fetcher providerFetcher) {
1916 tests, err := expectedProviders().Subset(NameVariants{{Name: fetcher.Provider()}})
1917 if err != nil {
1918 t.Fatalf("Failed to get subset: %s", err)
1919 }
1920 provider, err := fetcher.FetchProvider(client, context.Background())
1921 if err != nil {
1922 t.Fatalf("Failed to fetch provider: %s", err)
1923 }
1924 // Don't fetch when testing, otherwise we'll get an infinite loop of fetches
1925 tests.Test(t, client, []*Provider{provider}, false)
1926}
1927
1928func TestBannedStrings(t *testing.T) {
1929 resourceInvalidName := ResourceID{"nam__e", "variant", FEATURE}

Callers 4

TestMethod · 0.85
TestMethod · 0.85
TestMethod · 0.85
TestMethod · 0.85

Calls 5

expectedProvidersFunction · 0.85
SubsetMethod · 0.80
ProviderMethod · 0.65
FetchProviderMethod · 0.65
TestMethod · 0.65

Tested by

no test coverage detected