(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestDimension(t *testing.T) { |
| 46 | assert := assert.To(t) |
| 47 | for _, fn := range []string{ |
| 48 | "testdata/manifest7.binxml", |
| 49 | } { |
| 50 | originalData, err := ioutil.ReadFile(fn) |
| 51 | assert.For("err").ThatError(err).Succeeded() |
| 52 | |
| 53 | tree, err := decodeXmlTree(bytes.NewReader(originalData)) |
| 54 | assert.For("err").ThatError(err).Succeeded() |
| 55 | |
| 56 | assert.For("xml").ThatString(tree.toXmlString()).Contains(`android:minWidth="-1.125000px"`) |
| 57 | assert.For("xml").ThatString(tree.toXmlString()).Contains(`android:maxWidth="32.000000in"`) |
| 58 | |
| 59 | // Make sure we haven't broken the binary representation and that it still parses after the change. |
| 60 | _, err = decodeXmlTree(bytes.NewReader(tree.encode())) |
| 61 | assert.For("err").ThatError(err).Succeeded() |
| 62 | } |
| 63 | } |
nothing calls this directly
no test coverage detected