(filename string)
| 314 | } |
| 315 | |
| 316 | func parseDBFile(filename string) (*dst.File, error) { |
| 317 | localPath, err := localFilePath() |
| 318 | if err != nil { |
| 319 | return nil, err |
| 320 | } |
| 321 | |
| 322 | querierPath := filepath.Join(localPath, "..", "..", "..", "coderd", "database", filename) |
| 323 | querierData, err := os.ReadFile(querierPath) |
| 324 | if err != nil { |
| 325 | return nil, xerrors.Errorf("read %s: %w", filename, err) |
| 326 | } |
| 327 | f, err := decorator.Parse(querierData) |
| 328 | return f, err |
| 329 | } |
| 330 | |
| 331 | func loadExternalReceiverMethods( |
| 332 | dirPath string, |
no test coverage detected