Skip to content

Commit a1c4644

Browse files
committed
test(features): Clarify test names
1 parent 0865ee8 commit a1c4644

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/testsuite/features.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use cargo_test_support::str;
66
use cargo_test_support::{basic_manifest, project};
77

88
#[cargo_test]
9-
fn invalid1() {
9+
fn feature_activates_missing_feature() {
1010
let p = project()
1111
.file(
1212
"Cargo.toml",
@@ -120,7 +120,7 @@ foo v0.0.1 ([ROOT]/foo) [bar,baz]
120120
}
121121

122122
#[cargo_test]
123-
fn invalid3() {
123+
fn feature_activates_required_dependency() {
124124
let p = project()
125125
.file(
126126
"Cargo.toml",
@@ -155,7 +155,7 @@ Caused by:
155155
}
156156

157157
#[cargo_test]
158-
fn invalid4() {
158+
fn dependency_activates_missing_feature() {
159159
let p = project()
160160
.file(
161161
"Cargo.toml",
@@ -203,7 +203,7 @@ failed to select a version for `bar` which could resolve this conflict
203203
}
204204

205205
#[cargo_test]
206-
fn invalid5() {
206+
fn optional_dev_dependency() {
207207
let p = project()
208208
.file(
209209
"Cargo.toml",
@@ -235,7 +235,7 @@ Caused by:
235235
}
236236

237237
#[cargo_test]
238-
fn invalid6() {
238+
fn feature_activates_missing_dep_feature() {
239239
let p = project()
240240
.file(
241241
"Cargo.toml",
@@ -269,7 +269,7 @@ fn invalid6() {
269269
}
270270

271271
#[cargo_test]
272-
fn invalid7() {
272+
fn feature_activates_feature_inside_feature() {
273273
let p = project()
274274
.file(
275275
"Cargo.toml",
@@ -304,7 +304,7 @@ fn invalid7() {
304304
}
305305

306306
#[cargo_test]
307-
fn invalid8() {
307+
fn dependency_activates_dep_feature() {
308308
let p = project()
309309
.file(
310310
"Cargo.toml",
@@ -339,7 +339,7 @@ Caused by:
339339
}
340340

341341
#[cargo_test]
342-
fn invalid9() {
342+
fn cli_activates_required_dependency() {
343343
let p = project()
344344
.file(
345345
"Cargo.toml",
@@ -370,7 +370,7 @@ fn invalid9() {
370370
}
371371

372372
#[cargo_test]
373-
fn invalid10() {
373+
fn dependency_activates_required_dependency() {
374374
let p = project()
375375
.file(
376376
"Cargo.toml",

0 commit comments

Comments
 (0)