mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-24 16:43:37 +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:
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"io"
|
||||
|
||||
|
||||
cfg "erupe-ce/config"
|
||||
"erupe-ce/network"
|
||||
"sync"
|
||||
@@ -76,27 +76,27 @@ func createTestSession(mock network.Conn) *Session {
|
||||
// with their own terminators instead of being concatenated
|
||||
func TestPacketQueueIndividualSending(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
packetCount int
|
||||
wantPackets int
|
||||
name string
|
||||
packetCount int
|
||||
wantPackets int
|
||||
wantTerminators int
|
||||
}{
|
||||
{
|
||||
name: "single_packet",
|
||||
packetCount: 1,
|
||||
wantPackets: 1,
|
||||
name: "single_packet",
|
||||
packetCount: 1,
|
||||
wantPackets: 1,
|
||||
wantTerminators: 1,
|
||||
},
|
||||
{
|
||||
name: "multiple_packets",
|
||||
packetCount: 5,
|
||||
wantPackets: 5,
|
||||
name: "multiple_packets",
|
||||
packetCount: 5,
|
||||
wantPackets: 5,
|
||||
wantTerminators: 5,
|
||||
},
|
||||
{
|
||||
name: "many_packets",
|
||||
packetCount: 20,
|
||||
wantPackets: 20,
|
||||
name: "many_packets",
|
||||
packetCount: 20,
|
||||
wantPackets: 20,
|
||||
wantTerminators: 20,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user