(tracker *Tracker, publicKey, email string, rx, tx int64, endpointIP string)
| 7 | ) |
| 8 | |
| 9 | func updateSample(tracker *Tracker, publicKey, email string, rx, tx int64, endpointIP string) { |
| 10 | tracker.UpdateStatsBatch([]Sample{ |
| 11 | { |
| 12 | PublicKey: publicKey, |
| 13 | Email: email, |
| 14 | Rx: rx, |
| 15 | Tx: tx, |
| 16 | EndpointIP: endpointIP, |
| 17 | }, |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | func TestStatsTracker_GetStats(t *testing.T) { |
| 22 | tracker := New() |
no test coverage detected