MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / TestWriteModeRoundTrip

Function TestWriteModeRoundTrip

cli/internal/specs/v0/write_mode_test.go:71–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestWriteModeRoundTrip(t *testing.T) {
72 for _, writeModeStr := range AllWriteModes {
73 writeMode, err := WriteModeFromString(writeModeStr)
74 if err != nil {
75 t.Fatal(err)
76 }
77 if writeModeStr != writeMode.String() {
78 t.Fatalf("expected:%s got:%s", writeModeStr, writeMode.String())
79 }
80 }
81}

Callers

nothing calls this directly

Calls 2

WriteModeFromStringFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected