TestMakeAttribute tests MakeAttribute function
(t *testing.T)
| 182 | |
| 183 | // TestMakeAttribute tests MakeAttribute function |
| 184 | func TestMakeAttribute(t *testing.T) { |
| 185 | a1 := Attribute{ |
| 186 | Name: "attr", |
| 187 | Values: Values{{TagInteger, Integer(1)}}, |
| 188 | } |
| 189 | |
| 190 | a2 := MakeAttribute("attr", TagInteger, Integer(1)) |
| 191 | |
| 192 | if !a1.Equal(a2) { |
| 193 | t.Errorf("MakeAttribute test failed") |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | // TestAttributesCopy tests Attributes.Clone and Attributes.DeepCopy |
| 198 | func TestAttributesCopy(t *testing.T) { |
nothing calls this directly
no test coverage detected