anchor.diff:  
     /// Expect section [sectionIndex] to match [actual].
     void _expectSection(int sectionIndex, String actual) {
  -    if (_goldenFileExists &&
  +    if (!_shouldRegenerateGolden &&
           _results.length > sectionIndex &&
           _results[sectionIndex].isNotEmpty) {
         expect(
  
positive.code:   }
  
    void _readGoldenFile() {
      _goldenFileExists = _goldenFile.existsSync();
  
      // Read the golden file for this test
      if (_goldenFileExists) {
        var text = _goldenFile.readAsStringSync().replaceAll('\r\n', '\n');
        // Strip header line
        if (text.startsWith('#') && text.contains('\n\n')) {
  
negative.code:   late File _goldenFile;
    late String _header;
    final _results = <String>[];
    late bool _shouldRegenerateGolden;
    bool _generatedNewData = false; // track if new data is generated
    int _nextSectionIndex = 0;
  
  