File tree 1 file changed +36
-1
lines changed
codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil
1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,49 @@ private object Commands {
66
66
)
67
67
}
68
68
69
- // --all-features
69
+ // enable all features
70
+ // e.g.
71
+ // ```kotlin
72
+ // cargoTest(true)
73
+ // // cargo test --all-features
74
+ // cargoTest(false)
75
+ // // cargo test
76
+ // ```
70
77
fun cargoTest (enableAllFeatures : Boolean ): String {
71
78
return func(" cargo test" , allFeature, enableAllFeatures)
72
79
}
73
80
81
+ // enable all features
82
+ // e.g.
83
+ // ```kotlin
84
+ // cargoCheck(true)
85
+ // // cargo test --all-features
86
+ // cargoCheck(false)
87
+ // // cargo test
88
+ // ```
74
89
fun cargoCheck (enableAllFeatures : Boolean ): String {
75
90
return func(" cargo check" , allFeature, enableAllFeatures)
76
91
}
92
+
93
+ // enable features specified in the array
94
+ // e.g.
95
+ // ```kotlin
96
+ // cargoTest(["serde-serialize", "serde-deserialize"])
97
+ // // cargo test --features serde-serialize serde-deserialize
98
+ // ```
99
+ fun cargoTest (featuresToEnable? : Array <String >): String {
100
+ return func(" cargo test" , allFeature, enableAllFeatures)
101
+ }
102
+
103
+ // enable features specified in the array
104
+ // e.g.
105
+ // ```kotlin
106
+ // cargoCheck(["serde-serialize", "serde-deserialize"])
107
+ // // cargo check --features serde-serialize serde-deserialize
108
+ // ```
109
+ fun cargoCheck (featuresToEnable? : Array <String >): String {
110
+ return func(" cargo check" , allFeature, enableAllFeatures)
111
+ }
77
112
}
78
113
79
114
val TestModuleDocProvider = object : ModuleDocProvider {
You can’t perform that action at this time.
0 commit comments