MCPcopy Create free account
hub / github.com/arcjet/gravity / test_embed_with_variable

Function test_embed_with_variable

cmd/gravity/src/go/embed.rs:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48 #[test]
49 fn test_embed_with_variable() {
50 let mut tokens = Tokens::<Go>::new();
51
52 quote_in! { tokens =>
53 $(embed("app.wasm"))
54 var wasmFile []byte
55 };
56
57 let output = tokens.to_string().unwrap();
58 assert!(output.contains("//go:embed app.wasm"));
59 assert!(output.contains("var wasmFile []byte"));
60 }
61}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected