MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / convert_code

Function convert_code

src/assert.rs:1151–1157  ·  view source on GitHub ↗

Since IntoCodePredicate 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

1149 // Since IntoCodePredicate exists solely for conversion, test it under that scenario to ensure
1150 // it works as expected.
1151 fn convert_code<I, P>(pred: I) -> P
1152 where
1153 I: IntoCodePredicate<P>,
1154 P: Predicate<i32>,
1155 {
1156 pred.into_code()
1157 }
1158
1159 #[test]
1160 fn into_code_from_pred() {

Callers 4

into_code_from_predFunction · 0.85
into_code_from_i32Function · 0.85
into_code_from_vecFunction · 0.85
into_code_from_arrayFunction · 0.85

Calls 1

into_codeMethod · 0.80

Tested by 4

into_code_from_predFunction · 0.68
into_code_from_i32Function · 0.68
into_code_from_vecFunction · 0.68
into_code_from_arrayFunction · 0.68