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

gdassori / micelio / 22016944185
85%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2026 12:00PM UTC
Jobs 1
Files 20
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

14 Feb 2026 11:59AM UTC coverage: 84.007% (-0.09%) from 84.101%
22016944185

push

github

gdassori
Add broadcast delivery visibility and gossip statistics

Broadcast() and forwardTo() now track delivery success/failure and provide
visibility into partial delivery scenarios when peer buffers are full.

## Features

- Broadcast() returns (sent, total int) for delivery visibility
- forwardTo() tracks and logs sent vs attempted counts
- Stats() method provides aggregate counters:
  - Received: messages received and validated
  - Delivered: messages delivered to local handlers
  - Forwarded: messages forwarded to peers
  - Dropped: messages dropped (buffer full)

## Logging

- WARN log when Broadcast() has partial delivery (sent < total)
- DEBUG log in forwardTo() with sent/total/candidates counts
- All logs use structured key-value pairs (logging policy compliant)

## Implementation

- Atomic counters (sync/atomic.Uint64) for lock-free statistics
- No breaking changes: existing code can ignore Broadcast() return values
- Thread-safe: all counters use atomic operations

## Testing

- 6 new unit tests covering:
  - Broadcast return values (full and partial delivery)
  - Partial delivery WARN logging
  - forwardTo DEBUG logging
  - Stats() aggregation and atomicity
- All tests pass with -race detector
- Coverage: 95.2%
- golangci-lint: 0 issues

Closes #19

1891 of 2251 relevant lines covered (84.01%)

224.76 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
88.93
-0.65% manager.go
2
73.03
-1.32% noise.go
2
75.09
-0.74% peer.go
2
83.42
-1.07% server.go
8
95.48
1.19% gossip.go
Jobs
ID Job ID Ran Files Coverage
1 22016944185.1 14 Feb 2026 12:00PM UTC 20
84.01
GitHub Action Run
Source Files on build 22016944185
  • Tree
  • List 20
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22016944185
  • 89bf1bf1 on github
  • Prev Build on master (#22016804164)
  • Next Build on master (#22017251717)
  • 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