()
| 227 | } |
| 228 | |
| 229 | func newAuthTestCommand() *cobra.Command { |
| 230 | root := &cobra.Command{Use: "dbxcli"} |
| 231 | root.PersistentFlags().String(outputFlag, "text", "") |
| 232 | cmd := &cobra.Command{Use: "ls"} |
| 233 | cmd.Flags().BoolP("verbose", "v", false, "") |
| 234 | cmd.Flags().String("as-member", "", "") |
| 235 | cmd.Flags().String("domain", "", "") |
| 236 | root.AddCommand(cmd) |
| 237 | return cmd |
| 238 | } |
| 239 | |
| 240 | func TestInitDbxSkipsAuthForLocalCommands(t *testing.T) { |
| 241 | t.Setenv(envAccessToken, "") |
no outgoing calls
no test coverage detected