MCPcopy Create free account
hub / github.com/entireio/git-sync / TestClientReturnsAuthProviderErrors

Function TestClientReturnsAuthProviderErrors

client_test.go:78–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76}
77
78func TestClientReturnsAuthProviderErrors(t *testing.T) {
79 _, err := New(Options{Auth: errAuthProvider{}}).buildProbeConfig(context.Background(), ProbeRequest{
80 Source: Endpoint{URL: "https://source.example/repo.git"},
81 })
82 if err == nil {
83 t.Fatalf("expected auth provider error")
84 }
85}
86
87func TestClientSyncEndToEndWithLocalRepos(t *testing.T) {
88 sourceRepo, sourceFS := syncertest.NewMemoryRepo(t)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
buildProbeConfigMethod · 0.45

Tested by

no test coverage detected