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

Function test_apply_substitution_union

src/inheritance_tests.rs:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30#[test]
31fn test_apply_substitution_union() {
32 let subs = make_subs(&[("TValue", "Language")]);
33
34 assert_eq!(apply_substitution("TValue|null", &subs), "Language|null");
35 assert_eq!(
36 apply_substitution("TValue|string", &subs),
37 "Language|string"
38 );
39}
40
41#[test]
42fn test_apply_substitution_intersection() {

Callers

nothing calls this directly

Calls 1

make_subsFunction · 0.70

Tested by

no test coverage detected