()
| 77 | |
| 78 | #[test] |
| 79 | fn test_embedded_wasm() { |
| 80 | let var = GoIdentifier::private("wasm"); |
| 81 | let wasm = WasmData::Embedded("hello.wasm"); |
| 82 | let mut tokens = Tokens::<Go>::new(); |
| 83 | Wasm::new(&var, wasm).format_into(&mut tokens); |
| 84 | assert_eq!( |
| 85 | tokens.to_string().unwrap(), |
| 86 | "import _ \"embed\"\n\n//go:embed hello.wasm\nvar wasm []byte" |
| 87 | ); |
| 88 | } |
| 89 | } |
nothing calls this directly
no test coverage detected