Files

19 lines
668 B
Go

package tasks
import "testing"
func TestAllFullSyncTaskRegistrations(t *testing.T) {
for name, method := range map[string]string{
"start_traffic_usage_full_sync": "StartTrafficUsageFullSync",
"syns_sim_status_queue": "SynsSimStatusQueue",
"syns_imei_queue": "SynsImeiQueue",
"sync_traffic_usage_daily": "SyncTrafficUsageDaily",
"sync_traffic_usage_monthly": "SyncTrafficUsageMonthly",
"start_traffic_usage_monthly_history": "StartTrafficUsageMonthlyHistory",
} {
if got := GetInnerTaskName(name); got != method {
t.Errorf("task %q registered as %q, want %q", name, got, method)
}
}
}