(l *State, name, field, dirSep string)
| 30 | } |
| 31 | |
| 32 | func findFile(l *State, name, field, dirSep string) (string, error) { |
| 33 | l.Field(UpValueIndex(1), field) |
| 34 | path, ok := l.ToString(-1) |
| 35 | if !ok { |
| 36 | Errorf(l, "'package.%s' must be a string", field) |
| 37 | } |
| 38 | return searchPath(l, name, path, ".", dirSep) |
| 39 | } |
| 40 | |
| 41 | func checkLoad(l *State, loaded bool, fileName string) int { |
| 42 | if loaded { // Module loaded successfully? |
no test coverage detected