MCPcopy Create free account
hub / github.com/assert-rs/assert_fs / convert_path

Function convert_path

src/assert.rs:461–467  ·  view source on GitHub ↗

Since IntoPathPredicate exists solely for conversion, test it under that scenario to ensure it works as expected.

(pred: I)

Source from the content-addressed store, hash-verified

459 // Since IntoPathPredicate exists solely for conversion, test it under that scenario to ensure
460 // it works as expected.
461 fn convert_path<I, P>(pred: I) -> P
462 where
463 I: IntoPathPredicate<P>,
464 P: Predicate<path::Path>,
465 {
466 pred.into_path()
467 }
468
469 #[test]
470 fn into_path_from_pred() {

Callers 3

into_path_from_predFunction · 0.85
into_path_from_bytesFunction · 0.85
into_path_from_strFunction · 0.85

Calls 1

into_pathMethod · 0.80

Tested by 3

into_path_from_predFunction · 0.68
into_path_from_bytesFunction · 0.68
into_path_from_strFunction · 0.68