diff options
author | xengineering <me@xengineering.eu> | 2023-06-29 21:35:33 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-06-29 21:35:33 +0200 |
commit | 4e09d963a5222fbda64fa8c1e333beabe77f9355 (patch) | |
tree | d09f49742ea4791f40bbb4dae3e6da4823758dfe | |
parent | 81680ddb86d406ccaf4ba8d656bd27b1bbcf8367 (diff) | |
download | limox-4e09d963a5222fbda64fa8c1e333beabe77f9355.tar limox-4e09d963a5222fbda64fa8c1e333beabe77f9355.tar.zst limox-4e09d963a5222fbda64fa8c1e333beabe77f9355.zip |
Document element buffer test point struct
This makes it easier to add further test data in case there are further
corner cases which should be tested in the future.
-rw-r--r-- | xmpp/element_buffer_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmpp/element_buffer_test.go b/xmpp/element_buffer_test.go index 4b5700c..113a2c4 100644 --- a/xmpp/element_buffer_test.go +++ b/xmpp/element_buffer_test.go @@ -6,6 +6,10 @@ import ( "testing" ) +// bufTest is a struct containing a test point for the +// xengineering.eu/limox/xmpp.elementBuffer. It contains a test XML string +// which has to be exactly one XML element and an array of indentation levels +// which have to be checked after each token which is parsed. type bufTest struct { xml string levels []int |