From c690ed88826112875f6fbc104aefd554bacf561f Mon Sep 17 00:00:00 2001 From: adcondev <38170282+adcondev@users.noreply.github.com> Date: Thu, 12 Feb 2026 21:48:57 +0000 Subject: [PATCH] test: refactor anonymous functions to utility helpers in tests Extract anonymous functions in `pkg/commands/printposition/print_position_test.go` and `pkg/commands/print/print_test.go` to utility helpers in `internal/testutils`. - Added `GenerateSequence(n int) []byte` to `internal/testutils/byte_helpers.go`. - Added `AppendByte(c byte) *BufferBuilder` to `BufferBuilder` in `internal/testutils/byte_helpers.go`. - Updated tests to use these new helpers and `BufferBuilder`. - Removed `FIXME` comments related to anonymous functions. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>