MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / resolves_simple_include

Function resolves_simple_include

native/shared/src/renderer/shader_include.rs:144–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142
143 #[test]
144 fn resolves_simple_include() {
145 let src = table(&[
146 ("a.wgsl", "#include \"b.wgsl\"\nmain\n"),
147 ("b.wgsl", "inc\n"),
148 ]);
149 let out = process(&src, "a.wgsl").unwrap();
150 assert!(out.contains("inc"));
151 assert!(out.contains("main"));
152 }
153
154 #[test]
155 fn include_guard() {

Callers

nothing calls this directly

Calls 2

tableFunction · 0.85
processFunction · 0.85

Tested by

no test coverage detected