()
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected