feat: enroute groups

This commit is contained in:
Ilia Denisov
2026-01-16 22:20:27 +02:00
parent 16aba8435d
commit 741a5f726b
8 changed files with 299 additions and 9 deletions
+11
View File
@@ -2,10 +2,13 @@ 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 (
@@ -67,6 +70,14 @@ var (
}
)
// [ ] 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))