MCPcopy Create free account
hub / github.com/larksuite/cli / TestBootstrapInvocationContext_ProfileFlag

Function TestBootstrapInvocationContext_ProfileFlag

cmd/bootstrap_test.go:8–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6import "testing"
7
8func TestBootstrapInvocationContext_ProfileFlag(t *testing.T) {
9 inv, err := BootstrapInvocationContext([]string{"--profile", "target", "auth", "status"})
10 if err != nil {
11 t.Fatalf("BootstrapInvocationContext() error = %v", err)
12 }
13 if inv.Profile != "target" {
14 t.Fatalf("BootstrapInvocationContext() profile = %q, want %q", inv.Profile, "target")
15 }
16}
17
18func TestBootstrapInvocationContext_ProfileEquals(t *testing.T) {
19 inv, err := BootstrapInvocationContext([]string{"auth", "status", "--profile=target"})

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected