diff options
| author | Akaps316 <[email protected]> | 2026-04-12 19:40:20 +0530 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-04-20 09:35:36 +0800 |
| commit | 7eada8439652626e484c0011a4ae536b916cc7fe (patch) | |
| tree | ff7141a877441ceda06d55c2b30e72f5d9435803 /tests | |
| parent | 0c36a9b4acb9150c607b3d70291ad50148785038 (diff) | |
fix(depgraph): use direct deps and align print output with JSON
- Switch from target:orderdeps() to target:get('deps') to show only
direct dependencies declared via add_deps(), not transitive ones
- Print output now shows all fields: root targets, name, kind, group,
default, and deps — matching the JSON structure
- Add kind assertion to test
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/plugins/show/depgraph/test.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/projects/plugins/show/depgraph/test.lua b/tests/projects/plugins/show/depgraph/test.lua index 28ae7c188..229e715de 100644 --- a/tests/projects/plugins/show/depgraph/test.lua +++ b/tests/projects/plugins/show/depgraph/test.lua @@ -12,6 +12,7 @@ function test_depgraph_json(t) entries[target.name] = target end t:are_equal(entries.core.deps, {}) + t:are_equal(entries.core.kind, "static") t:are_equal(entries.ui.deps, {"core"}) t:are_equal(entries.app.deps, {"core", "ui"}) t:are_equal(entries.app.kind, "binary") |
