(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestUnknownOpcode(t *testing.T) { |
| 85 | var buf bytes.Buffer |
| 86 | |
| 87 | // Write invalid opcode |
| 88 | buf.WriteByte(0xFF) |
| 89 | |
| 90 | // Should fail to read |
| 91 | _, _, err := ReadControlMessage(&buf) |
| 92 | if err == nil { |
| 93 | t.Error("Expected error for unknown opcode, got nil") |
| 94 | } |
| 95 | } |
nothing calls this directly
no test coverage detected