• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

veeso / mastic / 25076880780
92%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 08:59PM UTC
Jobs 1
Files 93
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Apr 2026 08:47PM UTC coverage: 91.768% (-0.3%) from 92.022%
25076880780

push

github

veeso
feat(user): implement unfollow_user flow (UC6)

Implements WI-1.5 (#15). Adds the owner-only `unfollow_user` endpoint
that removes the target from the `following` table and dispatches an
`Undo(Follow)` activity to the target inbox via the Federation Canister.
Behaviour is idempotent: unfollowing a target that is not in `following`
is a silent no-op.

The same row covers both states: a `Pending` row represents an outbound
follow request that has not been accepted yet, and an `Accepted` row
represents an established follow. Unfollow removes the row regardless
of status — there is no separate outbound row in `follow_requests`,
which is strictly inbound.

Adds the inbound `Undo(Follow)` handler in `receive_activity`. It
removes the sender from `followers` (accepted inbound) and from
`follow_requests` (pending inbound). Both deletions are idempotent and
`Undo` of any inner activity other than `Follow` is silently ignored.

Adds unit coverage for the new flow and three integration tests:
follow → accept → unfollow, follow → unfollow before accept, and
unfollow when not following.

258 of 285 new or added lines in 7 files covered. (90.53%)

53 existing lines in 3 files now uncovered.

9464 of 10313 relevant lines covered (91.77%)

14.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
85.39
5.25% crates/canisters/user/src/domain/activity/handle_incoming.rs
6
50.0
-1.7% crates/canisters/user/src/api.rs
6
94.59
crates/canisters/user/src/domain/following/unfollow_user.rs
3
0.0
0.0% crates/canisters/user/src/lib.rs
1
0.0
0.0% crates/canisters/user/src/inspect.rs

Coverage Regressions

Lines Coverage ∆ File
40
50.0
-1.7% crates/canisters/user/src/api.rs
12
90.96
0.05% crates/canisters/directory/src/api.rs
1
85.39
5.25% crates/canisters/user/src/domain/activity/handle_incoming.rs
Jobs
ID Job ID Ran Files Coverage
1 25076880780.1 28 Apr 2026 08:59PM UTC 93
91.77
GitHub Action Run
Source Files on build 25076880780
  • Tree
  • List 93
  • Changed 10
  • Source Changed 10
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25076880780
  • eb50f52a on github
  • Prev Build on main (#24797475601)
  • Next Build on main (#25099057961)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc