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

Function test_apply_substitution_generic

src/inheritance_tests.rs:52–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51#[test]
52fn test_apply_substitution_generic() {
53 let subs = make_subs(&[("TKey", "int"), ("TValue", "Language")]);
54
55 assert_eq!(
56 apply_substitution("array<TKey, TValue>", &subs),
57 "array<int, Language>"
58 );
59}
60
61#[test]
62fn test_apply_substitution_nested_generic() {

Callers

nothing calls this directly

Calls 1

make_subsFunction · 0.70

Tested by

no test coverage detected