refactor(parser/diff): rename field with default
This commit is contained in:
parent
862693bf1f
commit
a708e768ec
|
@ -22,8 +22,8 @@ const (
|
|||
type Conf struct {
|
||||
PassComment string `default:"🥳Passed!\n"`
|
||||
FailComment string `default:"🧐Failed...\n"`
|
||||
PassNonAcceptedStatus bool
|
||||
ForceQuitOnFailed bool
|
||||
FailOnNotAccepted bool `default:"true"`
|
||||
ForceQuitOnFailed bool `default:"false"`
|
||||
Cases []struct {
|
||||
Outputs []struct {
|
||||
Score int
|
||||
|
@ -56,7 +56,7 @@ func (*Diff) Run(results []stage.ExecutorResult, confAny any) (
|
|||
result := results[i]
|
||||
score := 0
|
||||
comment := ""
|
||||
if !conf.PassNonAcceptedStatus &&
|
||||
if conf.FailOnNotAccepted &&
|
||||
result.Status != stage.Status(envexec.StatusAccepted) {
|
||||
if conf.ForceQuitOnFailed {
|
||||
forceQuit = true
|
||||
|
|
Loading…
Reference in New Issue
Block a user