Documentation
¶
Index ¶
- Constants
- func CLIApp(t *testing.T) (*app.App, *FakeKeyring, *FakeJev)
- func MustRunWith(t *testing.T, a *app.App, commands func() []*cobra.Command, stdin string, ...) (stdout, stderr string)
- func NewApp(t *testing.T) *app.App
- func NoSecret(t *testing.T, what string, outs ...string)
- func ReadFile(t *testing.T, path string) string
- func RunWith(a *app.App, commands func() []*cobra.Command, stdin string, args ...string) (code int, stdout, stderr string)
- func WriteFile(t *testing.T, path, content string)
- type FakeJev
- type FakeKeyring
Constants ¶
View Source
const SecretKey = "sk-test-SECRET-0123456789"
Variables ¶
This section is empty.
Functions ¶
func MustRunWith ¶
func RunWith ¶
func RunWith(a *app.App, commands func() []*cobra.Command, stdin string, args ...string) (code int, stdout, stderr string)
run executes one command with fresh buffers. runWith executes one command with fresh buffers. commands builds the top-level commands after the buffers are installed.
Types ¶
type FakeKeyring ¶
FakeKeyring is an in-memory keychain.
func (*FakeKeyring) Delete ¶
func (k *FakeKeyring) Delete(service, account string) error
func (*FakeKeyring) Set ¶
func (k *FakeKeyring) Set(service, account, secret string) error
Click to show internal directories.
Click to hide internal directories.