mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
style: run gofmt across entire codebase
330 non-vendor files had minor formatting inconsistencies (comment alignment, whitespace). No logic changes.
This commit is contained in:
@@ -468,9 +468,9 @@ func TestByteFrame_SequentialWrites(t *testing.T) {
|
||||
bf.WriteUint64(0x08090A0B0C0D0E0F)
|
||||
|
||||
expected := []byte{
|
||||
0x01, // uint8
|
||||
0x02, 0x03, // uint16
|
||||
0x04, 0x05, 0x06, 0x07, // uint32
|
||||
0x01, // uint8
|
||||
0x02, 0x03, // uint16
|
||||
0x04, 0x05, 0x06, 0x07, // uint32
|
||||
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, // uint64
|
||||
}
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ func TestUTF8ToSJIS_RoundTrip(t *testing.T) {
|
||||
|
||||
func TestToNGWord(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
input string
|
||||
minLen int
|
||||
checkFn func(t *testing.T, result []uint16)
|
||||
name string
|
||||
input string
|
||||
minLen int
|
||||
checkFn func(t *testing.T, result []uint16)
|
||||
}{
|
||||
{
|
||||
name: "ascii characters",
|
||||
@@ -328,11 +328,11 @@ func TestCSVGetIndex(t *testing.T) {
|
||||
|
||||
func TestCSVSetIndex(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
csv string
|
||||
index int
|
||||
value int
|
||||
check func(t *testing.T, result string)
|
||||
name string
|
||||
csv string
|
||||
index int
|
||||
value int
|
||||
check func(t *testing.T, result string)
|
||||
}{
|
||||
{
|
||||
name: "set first",
|
||||
|
||||
@@ -118,7 +118,7 @@ func TestGenerate_Distribution(t *testing.T) {
|
||||
|
||||
// With 62 valid characters and 6200 samples, average should be 100 per char
|
||||
// We'll accept a range to account for randomness
|
||||
minExpected := 50 // Allow some variance
|
||||
minExpected := 50 // Allow some variance
|
||||
maxExpected := 150
|
||||
|
||||
for c, count := range charCount {
|
||||
|
||||
Reference in New Issue
Block a user