MCPcopy Index your code
hub / github.com/apache/devlake / TestQDev_BasicPluginMethods

Function TestQDev_BasicPluginMethods

backend/plugins/q_dev/impl/impl_test.go:28–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestQDev_BasicPluginMethods(t *testing.T) {
29 plugin := &QDev{}
30
31 assert.Equal(t, "q_dev", plugin.Name())
32 assert.Equal(t, "To collect and enrich data from AWS Q Developer usage metrics", plugin.Description())
33 assert.Equal(t, "github.com/apache/incubator-devlake/plugins/q_dev", plugin.RootPkgPath())
34
35 // Test table info
36 tables := plugin.GetTablesInfo()
37 assert.Len(t, tables, 7)
38
39 // Test subtask metas
40 subtasks := plugin.SubTaskMetas()
41 assert.Len(t, subtasks, 3)
42
43 // Test API resources
44 apiResources := plugin.ApiResources()
45 assert.NotEmpty(t, apiResources)
46 assert.Contains(t, apiResources, "test")
47 assert.Contains(t, apiResources, "connections")
48}
49
50func TestQDev_TaskDataStructure(t *testing.T) {
51 // Test that QDevTaskData has the expected structure (legacy mode)

Callers

nothing calls this directly

Calls 7

NameMethod · 0.95
DescriptionMethod · 0.95
RootPkgPathMethod · 0.95
GetTablesInfoMethod · 0.95
SubTaskMetasMethod · 0.95
ApiResourcesMethod · 0.95
LenMethod · 0.45

Tested by

no test coverage detected