Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
flotter committed Aug 28, 2024
1 parent 518bbc3 commit b49e261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions internals/plan/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,9 @@ nexttest:
}

// TestSectionOrderExt ensures built-in and extension section ordering
// does not change. Extensions are ordered according to the order of
// registration.
// rules are maintained. Extensions are ordered according to the order of
// registration and follows the built-in sections which are ordered
// the same way they are defined in the Plan struct.
func (s *S) TestSectionOrderExt(c *C) {
plan.RegisterExtension("x-field", &xExtension{})
plan.RegisterExtension("y-field", &yExtension{})
Expand Down
3 changes: 2 additions & 1 deletion internals/plan/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,8 @@ func firstLetterToLower(s string) string {
return string(r)
}

// TestSectionOrder ensures built-in section order is maintained.
// TestSectionOrder ensures built-in section order is maintained
// during Plan marshal operations.
func (s *S) TestSectionOrder(c *C) {
layer, err := plan.ParseLayer(1, "label", reindent(`
checks:
Expand Down

0 comments on commit b49e261

Please sign in to comment.