feat: load player's report

This commit is contained in:
Ilia Denisov
2026-02-08 20:47:46 +02:00
parent f8412be248
commit e48a0c8b96
16 changed files with 91 additions and 35 deletions
-11
View File
@@ -2,13 +2,10 @@ package controller_test
import (
"fmt"
"slices"
"testing"
"github.com/google/uuid"
"github.com/iliadenisov/galaxy/internal/controller"
"github.com/iliadenisov/galaxy/internal/model/game"
"github.com/stretchr/testify/assert"
)
var (
@@ -103,14 +100,6 @@ var (
InSpace = game.InSpace{Origin: 2, X: floatRef(1.23), Y: floatRef(1.23)}
)
// [ ] Delete this fake test
func TestSlicesDelete(t *testing.T) {
sl := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
assert.Len(t, sl, 10)
sl = slices.DeleteFunc(sl, func(v int) bool { return v%2 == 0 })
assert.Len(t, sl, 5)
}
func assertNoError(err error) {
if err != nil {
panic(fmt.Sprintf("init assertion failed: %v", err))