]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/formatter: Add tests for dump_format_ns
authorAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Sat, 30 Aug 2014 08:12:42 +0000 (13:42 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Fri, 5 Sep 2014 03:34:48 +0000 (09:04 +0530)
commit9e503b56fc8f67cc10740a225529aff59b48dd81
treedd3a8052a22482ebeaf390f53da8fe82fcd71eb5
parenteaa2bb0aab57a430d5bdab7a5b5f540e36e87783
test/formatter: Add tests for dump_format_ns

Adding basic unit test to test the new formatter class'
dump_format_ns. Since the functionality only affects XML (and other
implementations mimic dump_format exactly), tests are added for these.
`fmt.close_section()` is avoided in the tests as this calls an
assert (and there is no section to close) and this triggers a test
failure.

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
src/test/formatter.cc