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

Function testPlugin

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

Source from the content-addressed store, hash-verified

54}
55
56func testPlugin(t *testing.T, s *spec.Spec) {
57 ctx := context.Background()
58 p := plugin.NewPlugin("s3", "development", New)
59 b, err := json.Marshal(s)
60 if err != nil {
61 t.Fatal(err)
62 }
63 if err := p.Init(ctx, b, plugin.NewClientOptions{}); err != nil {
64 t.Fatal(err)
65 }
66 plugin.TestWriterSuiteRunner(t,
67 p,
68 plugin.WriterTestSuiteTests{
69 SkipInsert: true,
70 SkipUpsert: true,
71 SkipMigrate: true,
72 SkipDeleteStale: true,
73 SkipDeleteRecord: true,
74 },
75 )
76}
77
78func testPluginCustom(t *testing.T, s *spec.Spec) {
79 ctx := context.Background()

Callers 1

TestPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected