main_test.go 238 B

123456789101112
  1. package main
  2. import (
  3. "strings"
  4. "testing"
  5. )
  6. func TestCommandHelpListsEncryptTokens(t *testing.T) {
  7. if help := commandHelp(); !strings.Contains(help, "encrypt-tokens") {
  8. t.Fatalf("command help omits encrypt-tokens:\n%s", help)
  9. }
  10. }