(f *schedHTTP, method string, body any)
| 17 | return f.path(f.item) |
| 18 | } |
| 19 | func commitmentCall(f *schedHTTP, method string, body any) *httptest.ResponseRecorder { |
| 20 | return f.as(f.token(f.owner, ""), method, commitmentPath(f), body) |
| 21 | } |
| 22 | func commitmentBody() map[string]any { |
| 23 | return map[string]any{"dtstart": "2099-01-01T09:00", "roles": map[string]any{ |
| 24 | "target_days": 0, "target_secs": 0, "deadline_days": 1, "deadline_secs": 0, "deadline_behavior": "stays_owed", "outcome": "shipped"}} |
no test coverage detected