all: more testing and attr refactor

This commit is contained in:
Aleksandr Razumov
2017-02-11 08:17:00 +03:00
parent 587a112e6b
commit 1d5427b2ea
12 changed files with 483 additions and 361 deletions

View File

@@ -125,12 +125,6 @@ type RawAttribute struct {
Value []byte
}
// AddTo adds RawAttribute to m.
func (a *RawAttribute) AddTo(m *Message) error {
m.Add(a.Type, m.Raw)
return nil
}
// Equal returns true if a == b.
func (a RawAttribute) Equal(b RawAttribute) bool {
if a.Type != b.Type {