Documentation ¶
Index ¶
- Constants
- func AssertTempDir(t *testing.T, fs *afero.Afero, dirName string, path string)
- func CreateTestFileSystem(files []File, assetNamespace string) http.FileSystem
- func ExampleWorkflow(sourceFileName string) string
- func NewTestCommand() *cobra.Command
- func NewTestContext(configString string) (*io.Container, *config.GFlowsContext, *bytes.Buffer)
- type File
- type MockRoundTripper
- func (roundTripper *MockRoundTripper) RoundTrip(request *http.Request) (*http.Response, error)
- func (roundTripper *MockRoundTripper) StubBody(url string, responseBody string)
- func (roundTripper *MockRoundTripper) StubResponse(url string, response *http.Response)
- func (roundTripper *MockRoundTripper) StubStatusCode(url string, statusCode int)
- type TestGitAdapter
- type TestGitRepository
- type TestRoundTripper
- func (roundTripper *TestRoundTripper) RoundTrip(request *http.Request) (*http.Response, error)
- func (roundTripper *TestRoundTripper) StubBody(url string, responseBody string)
- func (roundTripper *TestRoundTripper) StubResponse(url string, response *http.Response)
- func (roundTripper *TestRoundTripper) StubStatusCode(url string, statusCode int)
Constants ¶
View Source
const ExampleJsonnetTemplate = `` /* 249-byte string literal not displayed */
View Source
const InvalidJsonnetTemplate = `` /* 133-byte string literal not displayed */
View Source
const InvalidJsonnetWorkflow = `` /* 127-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CreateTestFileSystem ¶
func CreateTestFileSystem(files []File, assetNamespace string) http.FileSystem
func ExampleWorkflow ¶
func NewTestCommand ¶
func NewTestContext ¶
Types ¶
type MockRoundTripper ¶
func NewMockRoundTripper ¶
func NewMockRoundTripper() *MockRoundTripper
func (*MockRoundTripper) StubBody ¶
func (roundTripper *MockRoundTripper) StubBody(url string, responseBody string)
func (*MockRoundTripper) StubResponse ¶
func (roundTripper *MockRoundTripper) StubResponse(url string, response *http.Response)
func (*MockRoundTripper) StubStatusCode ¶
func (roundTripper *MockRoundTripper) StubStatusCode(url string, statusCode int)
type TestGitAdapter ¶
type TestGitAdapter struct {
// contains filtered or unexported fields
}
func NewTestGitAdapter ¶
func NewTestGitAdapter(fs *afero.Afero) *TestGitAdapter
func (*TestGitAdapter) Clone ¶
func (gitAdapter *TestGitAdapter) Clone(url string, dir string) error
func (*TestGitAdapter) StubRepo ¶
func (gitAdapter *TestGitAdapter) StubRepo(url string, repo *TestGitRepository)
type TestGitRepository ¶
type TestRoundTripper ¶
type TestRoundTripper struct {
// contains filtered or unexported fields
}
func NewTestRoundTripper ¶
func NewTestRoundTripper() *TestRoundTripper
func (*TestRoundTripper) StubBody ¶
func (roundTripper *TestRoundTripper) StubBody(url string, responseBody string)
func (*TestRoundTripper) StubResponse ¶
func (roundTripper *TestRoundTripper) StubResponse(url string, response *http.Response)
func (*TestRoundTripper) StubStatusCode ¶
func (roundTripper *TestRoundTripper) StubStatusCode(url string, statusCode int)
Click to show internal directories.
Click to hide internal directories.