Debian Codegraph @

tests/cli/merge-with-similar-versions.wit.imports-deps.stdout

raw
1 /// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports
2 /// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports
3 /// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps
4 /// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2
5 /// FAIL[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver
6 /// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver
7 /// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive
8 package foo:bar;
9
10 world imports {
11 import a:b/[email protected];
12 import a:b/[email protected];
13 }
14 world exports {
15 export a:b/[email protected];
16 export a:b/[email protected];
17 }
18 world imports-deps {
19 import a:b/[email protected];
20 import a:b/[email protected];
21 }
22 world imports-deps2 {
23 import a:b/[email protected];
24 import a:b/[email protected];
25 import a:b/[email protected];
26 import a:b/[email protected];
27 }
28 world invalid-semver {
29 import a:b/[email protected];
30 import a:b/[email protected];
31 }
32 world valid-semver {
33 import a:b/[email protected];
34 import a:b/[email protected];
35 }
36 world fix-transitive {
37 import a:b/[email protected];
38 import a:b/[email protected];
39 import a:b/[email protected];
40 import a:b/[email protected];
41 use a:b/[email protected].{t as t1};
42 use a:b/[email protected].{t as t2};
43 use a:b/[email protected].{t as t3};
44 use a:b/[email protected].{t as t4};
45 }
46 package a:[email protected] {
47 interface foo {
48 type t = u32;
49
50 x: func();
51 }
52 interface depend-on-foo {
53 use foo.{t};
54
55 x: func() -> t;
56 }
57 interface invalid-semver {
58 x: func();
59 }
60 interface valid-semver {
61 x: func();
62 }
63 interface use-foo1 {
64 use foo.{t};
65
66 x: func() -> t;
67 }
68 }
69
70
71 package a:[email protected] {
72 interface foo {
73 type t = u32;
74
75 x: func();
76 }
77 interface depend-on-foo {
78 use foo.{t};
79
80 x: func() -> t;
81 }
82 interface invalid-semver {
83 y: func();
84 }
85 interface valid-semver {
86 x: func();
87
88 y: func();
89 }
90 interface use-foo2 {
91 use foo.{t};
92
93 x: func() -> t;
94 }
95 }