anchor.diff:          );
           chunkedTests<List<XmlNode>>(
             'nodes -> events',
  -          document.children,
  +          () => document.children,
             listChunker,
             (stream) {
               final actual = stream.toXmlEvents().flatten();
  
positive.code:         }
          chunkedTests<List<XmlEvent>>(
            'events -> handler',
            events,
            listChunker,
            (stream) async {
              final cdata = <XmlCDATAEvent>[];
  
negative.code: @isTestGroup
  void chunkedTests<T>(
    String title,
    T Function() factory,
    Stream<T> Function(T input, int Function() splitter) chunker,
    FutureOr<void> Function(Stream<T> stream) callback,
  ) =>
      group(title, () {
        late final T input;
        setUpAll(() => input = factory());
        for (var i = 1; i <= 512; i *= 2) {
          test(
            'chunks equally sized $i',
            () => callback(chunker(input, () => i)),
          );
        }
        final random = Random(title.hashCode);
        for (var i = 1; i <= 512; i *= 2) {
          test(
            'chunks randomly sized $i',
  