This commit is contained in:
2026-03-24 02:30:18 +01:00
parent 30c8c40157
commit c7f8455188
10 changed files with 29 additions and 26 deletions

View File

@@ -89,7 +89,10 @@ func TestBuildFilterNil(t *testing.T) {
} }
func TestFmtCount(t *testing.T) { func TestFmtCount(t *testing.T) {
cases := []struct{ n int64; want string }{ cases := []struct {
n int64
want string
}{
{0, "0"}, {0, "0"},
{999, "999"}, {999, "999"},
{1000, "1 000"}, {1000, "1 000"},

View File

@@ -4,8 +4,8 @@ import (
"sync" "sync"
"time" "time"
pb "git.ipng.ch/ipng/nginx-logtail/proto/logtailpb"
st "git.ipng.ch/ipng/nginx-logtail/internal/store" st "git.ipng.ch/ipng/nginx-logtail/internal/store"
pb "git.ipng.ch/ipng/nginx-logtail/proto/logtailpb"
) )
const liveMapCap = 100_000 // hard cap on live map entries const liveMapCap = 100_000 // hard cap on live map entries

View File

@@ -5,8 +5,8 @@ import (
"testing" "testing"
"time" "time"
pb "git.ipng.ch/ipng/nginx-logtail/proto/logtailpb"
st "git.ipng.ch/ipng/nginx-logtail/internal/store" st "git.ipng.ch/ipng/nginx-logtail/internal/store"
pb "git.ipng.ch/ipng/nginx-logtail/proto/logtailpb"
) )
func makeStore() *Store { func makeStore() *Store {