(t *testing.T)
| 772 | } |
| 773 | |
| 774 | func TestJSONHelpForUnsupportedStructuredCommand(t *testing.T) { |
| 775 | stdout, _, err := executeJSONHelpTestRoot(t, []string{"login", "--help", "--output=json"}) |
| 776 | if err != nil { |
| 777 | t.Fatalf("Execute returned error: %v", err) |
| 778 | } |
| 779 | got := decodeJSONHelpOutput(t, stdout) |
| 780 | login := jsonHelpManifestByPath(t, got, "login") |
| 781 | if login.SupportsStructuredOutput { |
| 782 | t.Fatal("login supports_structured_output = true, want false") |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | func TestJSONHelpPreservesTextHelpAndRootDefaultHelp(t *testing.T) { |
| 787 | stdout, stderr, err := executeJSONHelpTestRoot(t, []string{"--help"}) |
nothing calls this directly
no test coverage detected