MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / commitmentBody

Function commitmentBody

internal/server/handlers_commitments_test.go:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 return f.as(f.token(f.owner, ""), method, commitmentPath(f), body)
21}
22func 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}
26func readCommitment(t *testing.T, rr *httptest.ResponseRecorder, status int) models.Commitment {
27 t.Helper()
28 if rr.Code != status {

Calls

no outgoing calls

Tested by

no test coverage detected