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

Function commitmentCall

internal/server/handlers_commitments_test.go:19–21  ·  view source on GitHub ↗
(f *schedHTTP, method string, body any)

Source from the content-addressed store, hash-verified

17 return f.path(f.item)
18}
19func commitmentCall(f *schedHTTP, method string, body any) *httptest.ResponseRecorder {
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"}}

Calls 3

commitmentPathFunction · 0.85
asMethod · 0.80
tokenMethod · 0.45

Tested by

no test coverage detected