(t *testing.T)
| 258 | } |
| 259 | |
| 260 | func TestWriteAuthCleartextPassword(t *testing.T) { |
| 261 | var buf bytes.Buffer |
| 262 | |
| 263 | err := wire.WriteAuthCleartextPassword(&buf) |
| 264 | if err != nil { |
| 265 | t.Fatalf("wire.WriteAuthCleartextPassword() error = %v", err) |
| 266 | } |
| 267 | |
| 268 | // Auth type should be 3 (cleartext password) |
| 269 | authType := binary.BigEndian.Uint32(buf.Bytes()[5:9]) |
| 270 | if authType != 3 { |
| 271 | t.Errorf("auth type = %d, want 3", authType) |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | func TestWriteParameterStatus(t *testing.T) { |
| 276 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected