()
| 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"}} |
| 25 | } |
| 26 | func readCommitment(t *testing.T, rr *httptest.ResponseRecorder, status int) models.Commitment { |
| 27 | t.Helper() |
| 28 | if rr.Code != status { |
no outgoing calls
no test coverage detected