From 4e09d963a5222fbda64fa8c1e333beabe77f9355 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 29 Jun 2023 21:35:33 +0200 Subject: 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. --- xmpp/element_buffer_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2