fileContents is syntax sugar for Container.WithNewFile.
(path, contents string)
| 8120 | |
| 8121 | // fileContents is syntax sugar for Container.WithNewFile. |
| 8122 | func fileContents(path, contents string) dagger.WithContainerFunc { |
| 8123 | return func(c *dagger.Container) *dagger.Container { |
| 8124 | return c.WithNewFile(path, heredoc.Doc(contents)) |
| 8125 | } |
| 8126 | } |
| 8127 | |
| 8128 | func withModuleFixture(t testing.TB, c *dagger.Client, dst, fixture string) dagger.WithContainerFunc { |
| 8129 | t.Helper() |
no test coverage detected