mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
24 lines
630 B
Go
24 lines
630 B
Go
//go:build testing
|
|
// +build testing
|
|
|
|
package records
|
|
|
|
import (
|
|
"github.com/pocketbase/pocketbase/core"
|
|
)
|
|
|
|
// TestDeleteOldSystemStats exposes deleteOldSystemStats for testing
|
|
func TestDeleteOldSystemStats(app core.App) error {
|
|
return deleteOldSystemStats(app)
|
|
}
|
|
|
|
// TestDeleteOldAlertsHistory exposes deleteOldAlertsHistory for testing
|
|
func TestDeleteOldAlertsHistory(app core.App, countToKeep, countBeforeDeletion int) error {
|
|
return deleteOldAlertsHistory(app, countToKeep, countBeforeDeletion)
|
|
}
|
|
|
|
// TestTwoDecimals exposes twoDecimals for testing
|
|
func TestTwoDecimals(value float64) float64 {
|
|
return twoDecimals(value)
|
|
}
|