Skip to content

Commit caa8aa5

Browse files
committed
Refactor generateTests to use TestsPerRule from GetDefaultOptions
1 parent b662738 commit caa8aa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/generate/pipeline.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ Inverse Output Rules:`, strings.Join(context.Rules, "\n"))
284284
func (h *generateCommandHandler) generateTests(context *PromptPexContext) error {
285285
h.WriteStartBox("Tests", fmt.Sprintf("%d rules x %d tests per rule", len(context.Rules)+len(context.InverseRules), h.options.TestsPerRule))
286286
if len(context.Tests) == 0 {
287-
testsPerRule := GetDefaultOptions()
287+
defaultOptions := GetDefaultOptions()
288+
testsPerRule := defaultOptions.TestsPerRule
288289
if h.options.TestsPerRule != 0 {
289290
testsPerRule = h.options.TestsPerRule
290291
}

0 commit comments

Comments
 (0)