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

Function seriesMoveFixture

internal/server/commitment_move_scope_test.go:17–24  ·  view source on GitHub ↗

The move scope: occurrence (the default) or series, which also writes the root's native target offset from the outstanding occurrence on.

(t *testing.T)

Source from the content-addressed store, hash-verified

15// root's native target offset from the outstanding occurrence on.
16
17func seriesMoveFixture(t *testing.T) *schedHTTP {
18 t.Helper()
19 f := newSchedHTTP(t)
20 b := commitmentBody()
21 b["rrule"] = "FREQ=DAILY"
22 readCommitment(t, commitmentCall(f, "POST", b), 201)
23 return f
24}
25
26func TestMoveScopeValidation(t *testing.T) {
27 t.Parallel()

Calls 5

newSchedHTTPFunction · 0.85
commitmentBodyFunction · 0.85
readCommitmentFunction · 0.85
commitmentCallFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected