- Implement tests for player configuration creation, update, and deletion, ensuring proper handling of free and paid user scenarios. - Add tests for referral registration, including valid and invalid referrer cases. - Create tests for referral reward flow, verifying correct reward distribution and eligibility. - Establish a test database setup with necessary schema for user, plan, payment, and notification models. - Introduce helper functions for seeding test data and loading entities from the database.
17 lines
377 B
Go
17 lines
377 B
Go
package video
|
|
|
|
import (
|
|
runtimeservices "stream.api/internal/video/runtime/services"
|
|
)
|
|
|
|
type AgentWithStats = runtimeservices.AgentWithStats
|
|
|
|
type PaginatedJobs = runtimeservices.PaginatedJobs
|
|
|
|
var ErrInvalidJobCursor = runtimeservices.ErrInvalidJobCursor
|
|
|
|
type AgentRuntime interface {
|
|
ListAgentsWithStats() []*AgentWithStats
|
|
SendCommand(agentID string, cmd string) bool
|
|
}
|