Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add failing test for nested structure #209

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cr8t
Copy link

@cr8t cr8t commented Sep 6, 2023

Adds a failing integration test for nested structures that contain repeating keys.

xml-rs appears to not be able to find an ending XML token in the nested inner structure when it contains an array type with multiple values.

Error from the test tests/nested-failures.rs:

$ cargo test --test nested-failures
    Updating crates.io index
    Finished test [unoptimized + debuginfo] target(s) in 2.28s
     Running tests/nested-failures.rs (target/debug/deps/nested_failures-966734fbe6baaf5e)

running 1 test
test nested_struct ... FAILED

failures:

---- nested_struct stdout ----
Error: UnexpectedToken { token: "XmlEvent::EndElement { name, .. }", found: "StartElement(value, {\"\": \"\", \"xml\": \"http://www.w3.org/XML/1998/namespace\", \"xmlns\": \"http://www.w3.org/2000/xmlns/\"})" }


failures:
    nested_struct

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

error: test failed, to rerun pass `--test nested-failures`

Adds a failing integration test for nested structures that contain
repeating keys.

`xml-rs` appears to not be able to find an ending XML token in the
nested inner structure when it contains an `array` type with multiple
`value`s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant