mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
24 lines
606 B
Go
24 lines
606 B
Go
//go:build testing
|
|
// +build testing
|
|
|
|
package records
|
|
|
|
import (
|
|
"github.com/pocketbase/pocketbase/core"
|
|
)
|
|
|
|
// DeleteOldSystemStats exposes deleteOldSystemStats for testing
|
|
func DeleteOldSystemStats(app core.App) error {
|
|
return deleteOldSystemStats(app)
|
|
}
|
|
|
|
// DeleteOldAlertsHistory exposes deleteOldAlertsHistory for testing
|
|
func DeleteOldAlertsHistory(app core.App, countToKeep, countBeforeDeletion int) error {
|
|
return deleteOldAlertsHistory(app, countToKeep, countBeforeDeletion)
|
|
}
|
|
|
|
// TwoDecimals exposes twoDecimals for testing
|
|
func TwoDecimals(value float64) float64 {
|
|
return twoDecimals(value)
|
|
}
|