Normalize returns a trimmed wake event with bounded redacted summary text.
()
| 101 | |
| 102 | // Normalize returns a trimmed wake event with bounded redacted summary text. |
| 103 | func (e WakeEvent) Normalize() WakeEvent { |
| 104 | return WakeEvent{ |
| 105 | WakeEventID: strings.TrimSpace(e.WakeEventID), |
| 106 | WorkspaceID: strings.TrimSpace(e.WorkspaceID), |
| 107 | TaskID: strings.TrimSpace(e.TaskID), |
| 108 | RunID: strings.TrimSpace(e.RunID), |
| 109 | Reason: e.Reason.Normalize(), |
| 110 | Summary: boundWakeSummary(e.Summary), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | // Validate reports whether the wake event has the minimum delivery identity. |
| 115 | func (e WakeEvent) Validate() error { |
no test coverage detected