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

Function testPlugin

plugins/destination/file/client/client_test.go:145–164  ·  view source on GitHub ↗
(t *testing.T, s *spec.Spec)

Source from the content-addressed store, hash-verified

143}
144
145func testPlugin(t *testing.T, s *spec.Spec) {
146 ctx := context.Background()
147 p := plugin.NewPlugin("file", "development", New)
148 b, err := json.Marshal(s)
149 if err != nil {
150 t.Fatal(err)
151 }
152 if err := p.Init(ctx, b, plugin.NewClientOptions{}); err != nil {
153 t.Fatal(err)
154 }
155 plugin.TestWriterSuiteRunner(t,
156 p,
157 plugin.WriterTestSuiteTests{
158 SkipUpsert: true,
159 SkipMigrate: true,
160 SkipDeleteStale: true,
161 SkipDeleteRecord: true,
162 },
163 )
164}
165
166func testPluginCustom(t *testing.T, s *spec.Spec) {
167 ctx := context.Background()

Callers 1

TestPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected