Merge pull request #52 from LazyBachelor/LPM-84-fixed

LPM-84 Priority Management Task
This commit is contained in:
Robin Olsen
2026-03-11 12:40:37 -07:00
committed by GitHub
2 changed files with 53 additions and 18 deletions

View File

@@ -30,11 +30,21 @@ func NewExpector() *Expector {
}
}
func (e *Expector) Valid() bool {
return len(e.Errors()) == 0
}
func (e *Expector) Complete() ValidationFeedback {
e.Success = len(e.Errors()) == 0
return e.ValidationFeedback
}
func (e *Expector) Fatal(message string) ValidationFeedback {
e.Success = false
e.Message = message
return e.ValidationFeedback
}
func (e *Expector) CompleteWithMessage(message string) ValidationFeedback {
e.Success = len(e.Errors()) == 0
if !e.Success {