()
| 24 | ) |
| 25 | |
| 26 | func ExampleNewMemFetcher() { |
| 27 | fetcher := fetch.NewMemFetcher(map[string][]byte{ |
| 28 | "file.txt": []byte("content"), |
| 29 | "dir/file.txt": []byte("content"), |
| 30 | }) |
| 31 | content, err := fetcher.File("dir/file.txt") |
| 32 | if err != nil { |
| 33 | panic(err) |
| 34 | } |
| 35 | |
| 36 | fmt.Println("Content of myFile.yml") |
| 37 | fmt.Println(string(content)) |
| 38 | } |
| 39 | |
| 40 | func TestMemFetcher(t *testing.T) { |
| 41 | a := assertions.New(t) |
nothing calls this directly
no test coverage detected