Skip to content

Commit

Permalink
chore: improve code coverage (#485)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jackton1 and github-actions[bot] committed Jun 7, 2023
1 parent c9b3014 commit 33205a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ func RootCmdRunE(cmd *cobra.Command, args []string) error {
}

reusable, err := cmd.Flags().GetBool("reusable")
// coverage:ignore
if err != nil {
return err
}

markdownLinks, err := cmd.Flags().GetBool("markdownLinks")
// coverage:ignore
if err != nil {
return err
}
Expand Down Expand Up @@ -99,6 +101,7 @@ func RootCmdRunE(cmd *cobra.Command, args []string) error {
}

err = documentation.RenderOutput()
// coverage:ignore
if err != nil {
return err
}
Expand All @@ -113,6 +116,7 @@ func RootCmdRunE(cmd *cobra.Command, args []string) error {

// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
// coverage:ignore
func Execute() {
cobra.CheckErr(rootCmd.Execute())
}
Expand Down
2 changes: 1 addition & 1 deletion internal/types/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func renderActionInputTableOutput(inputs map[string]ActionInput, inputColumns []
inputKey := key

if markdownLinks {
inputKey = utils.MarkdownLink(inputKey, "input")
inputKey = utils.MarkdownLink(inputKey, "input")
}

for _, col := range inputColumns {
Expand Down

0 comments on commit 33205a6

Please sign in to comment.