Debian Codegraph @

tests/cli/merge-with-similar-versions.wit.exports.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 import a:b/[email protected];
22 import a:b/[email protected];
23 }
24 world imports-deps2 {
25 import a:b/[email protected];
26 import a:b/[email protected];
27 import a:b/[email protected];
28 import a:b/[email protected];
29 }
30 world invalid-semver {
31 import a:b/[email protected];
32 import a:b/[email protected];
33 }
34 world valid-semver {
35 import a:b/[email protected];
36 import a:b/[email protected];
37 }
38 world fix-transitive {
39 import a:b/[email protected];
40 import a:b/[email protected];
41 import a:b/[email protected];
42 import a:b/[email protected];
43 use a:b/[email protected].{t as t1};
44 use a:b/[email protected].{t as t2};
45 use a:b/[email protected].{t as t3};
46 use a:b/[email protected].{t as t4};
47 }
48 package a:[email protected] {
49 interface foo {
50 type t = u32;
51
52 x: func();
53 }
54 interface depend-on-foo {
55 use foo.{t};
56
57 x: func() -> t;
58 }
59 interface invalid-semver {
60 x: func();
61 }
62 interface valid-semver {
63 x: func();
64 }
65 interface use-foo1 {
66 use foo.{t};
67
68 x: func() -> t;
69 }
70 }
71
72
73 package a:[email protected] {
74 interface foo {
75 type t = u32;
76
77 x: func();
78 }
79 interface depend-on-foo {
80 use foo.{t};
81
82 x: func() -> t;
83 }
84 interface invalid-semver {
85 y: func();
86 }
87 interface valid-semver {
88 x: func();
89
90 y: func();
91 }
92 interface use-foo2 {
93 use foo.{t};
94
95 x: func() -> t;
96 }
97 }