MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / test_apply_substitution_direct

Function test_apply_substitution_direct

src/inheritance_tests.rs:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14#[test]
15fn test_apply_substitution_direct() {
16 let subs = make_subs(&[("TValue", "Language"), ("TKey", "int")]);
17
18 assert_eq!(apply_substitution("TValue", &subs), "Language");
19 assert_eq!(apply_substitution("TKey", &subs), "int");
20 assert_eq!(apply_substitution("string", &subs), "string");
21}
22
23#[test]
24fn test_apply_substitution_nullable() {

Callers

nothing calls this directly

Calls 1

make_subsFunction · 0.70

Tested by

no test coverage detected