(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestSetServerAddress(t *testing.T) { |
| 46 | // Reset global in case other tests changed it |
| 47 | SetServerAddress("") |
| 48 | if GetServerAddress() != "" { |
| 49 | t.Fatalf("Expected empty address, got %q", GetServerAddress()) |
| 50 | } |
| 51 | |
| 52 | testAddr := "127.0.0.1:8080" |
| 53 | SetServerAddress(testAddr) |
| 54 | if addr := GetServerAddress(); addr != testAddr { |
| 55 | t.Fatalf("Expected serverAddr to be %q, got %q", testAddr, addr) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func TestRoundCount(t *testing.T) { |
| 60 | // Reset roundCount for test isolation |
nothing calls this directly
no test coverage detected