(s string)
| 74 | } |
| 75 | |
| 76 | func zeroTerminatedBytes(s string) []byte { |
| 77 | b := make([]byte, len(s)+1) |
| 78 | copy(b, s) |
| 79 | return b |
| 80 | } |
| 81 | |
| 82 | func (ctx *Context) detectModuleSource(code string, codePtr *C.char) bool { |
| 83 | if !mayContainModuleSyntax(code) || !ctx.hasValidRef() { |
no outgoing calls
no test coverage detected