File tree 1 file changed +12
-2
lines changed
codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,12 @@ private object Commands {
97
97
// // cargo test --features serde-serialize serde-deserialize
98
98
// ```
99
99
fun cargoTest (featuresToEnable : Array <String >? ): String {
100
- return func(" cargo test" , allFeature, enableAllFeatures)
100
+ if (featuresToEnable != null ) {
101
+ val s = featuresToEnable.joinToString { " " }
102
+ return " cargo test --features $s "
103
+ }else {
104
+ return " cargo test"
105
+ }
101
106
}
102
107
103
108
// enable features specified in the array
@@ -107,7 +112,12 @@ private object Commands {
107
112
// // cargo check --features serde-serialize serde-deserialize
108
113
// ```
109
114
fun cargoCheck (featuresToEnable : Array <String >? ): String {
110
- return func(" cargo check" , allFeature, enableAllFeatures)
115
+ if (featuresToEnable != null ) {
116
+ val s = featuresToEnable.joinToString { " " }
117
+ return " cargo check --features $s "
118
+ }else {
119
+ return " cargo check"
120
+ }
111
121
}
112
122
}
113
123
You can’t perform that action at this time.
0 commit comments