all: more refactoring for refactor god

This commit is contained in:
Aleksandr Razumov
2017-02-04 14:56:22 -08:00
parent 6f411f0187
commit c17c2351ea
5 changed files with 88 additions and 35 deletions

View File

@@ -16,7 +16,9 @@ func TestMessage_AddSoftware(t *testing.T) {
m.AddRaw(AttrSoftware, []byte(v))
m.WriteHeader()
m2 := New()
m2 := &Message{
Raw: make([]byte, 0, 256),
}
if _, err := m2.ReadFrom(m.reader()); err != nil {
t.Error(err)
}