Path returns the absolute path to a file in the testdata directory
(parts ...string)
| 73 | |
| 74 | // Path returns the absolute path to a file in the testdata directory |
| 75 | func (p *TestDataProvider) Path(parts ...string) string { |
| 76 | allParts := append([]string{p.path}, parts...) |
| 77 | return filepath.Join(allParts...) |
| 78 | } |
| 79 | |
| 80 | // Read reads a test data file and returns it as bytes |
| 81 | func (p *TestDataProvider) Read(name string) []byte { |
no outgoing calls