Skip to content

Commit

Permalink
Increase code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jul 31, 2021
1 parent ae2fafd commit 307d1fc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions recipe/recipe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,16 @@ func (s *RecipeSuite) TestAux(c *C) {
c.Assert(k.HasProp("TEST"), Equals, true)
}

func (s *RecipeSuite) TestTags(c *C) {
r, k := &Recipe{}, &Command{}
r.AddCommand(k, "teardown")

c.Assert(r.HasTeardown(), Equals, true)

r, k = &Recipe{}, &Command{}
r.AddCommand(k, "")

c.Assert(r.HasTeardown(), Equals, false)
}

// ////////////////////////////////////////////////////////////////////////////////// //
2 changes: 1 addition & 1 deletion testdata/test1.recipe
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ command "{user}:echo" "Simple echo command"
exit 1

command:special "echo" "Simple echo command"
exit 1
exit 1

0 comments on commit 307d1fc

Please sign in to comment.