blob: ccd2edf74f7bd6573aadcb5f65ea1eb7c92f2f54 [file] [log] [blame] [edit]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:test/test.dart';
import 'src/golden_file.dart';
void main() {
test('Doc comment generation for messages', () {
final actual = File('test/gen/doc_comments.pb.dart').readAsStringSync();
expectGolden(actual, 'doc_comments.pb.dart');
});
test('Doc comment generation for enums', () {
final actual = File('test/gen/doc_comments.pbenum.dart').readAsStringSync();
expectGolden(actual, 'doc_comments.pbenum.dart');
});
}