summaryrefslogtreecommitdiff
path: root/internal/service/progress_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-30 10:45:30 +0300
committerPaul Buetow <paul@buetow.org>2026-04-30 10:45:30 +0300
commitadecf1fd2e55a0605d03f36952846f6336506d37 (patch)
treec02af76c7ea906f22c742cf4be83e488e5fcf050 /internal/service/progress_test.go
parent0d7063e5c91efeb219a4be5b93525b0837c8d3be (diff)
Rename module to codeberg.org/snonux/play (task aa)
- Update go.mod module path - Replace all internal imports from github.com/paul/kiss-media-player to codeberg.org/snonux/play - Run go mod tidy and gofmt -w .
Diffstat (limited to 'internal/service/progress_test.go')
-rw-r--r--internal/service/progress_test.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/internal/service/progress_test.go b/internal/service/progress_test.go
index 4baf03f..718da31 100644
--- a/internal/service/progress_test.go
+++ b/internal/service/progress_test.go
@@ -5,28 +5,28 @@ import (
"errors"
"testing"
- "github.com/paul/kiss-media-player/internal/model"
- "github.com/paul/kiss-media-player/internal/repository"
+ "codeberg.org/snonux/play/internal/model"
+ "codeberg.org/snonux/play/internal/repository"
)
func TestProgressService_UpdateProgress(t *testing.T) {
ctx := context.Background()
tests := []struct {
- name string
- sessionID string
- userID int64
- mediaID int64
- position float64
- accLastPosition float64
- accAccumulated float64
- accCounted bool
- accErr error
+ name string
+ sessionID string
+ userID int64
+ mediaID int64
+ position float64
+ accLastPosition float64
+ accAccumulated float64
+ accCounted bool
+ accErr error
upsertProgressErr error
- upsertAccErr error
- incrementErr error
- wantErr bool
- wantCounted bool
+ upsertAccErr error
+ incrementErr error
+ wantErr bool
+ wantCounted bool
}{
{
name: "fresh accumulator does not reach 60 due to clamp",