(t *testing.T)
| 26 | ) |
| 27 | |
| 28 | func 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 | |
| 50 | func TestQDev_TaskDataStructure(t *testing.T) { |
| 51 | // Test that QDevTaskData has the expected structure (legacy mode) |
nothing calls this directly
no test coverage detected