blob: 3b386c79810702777ef88e16ec3f129d3e72b507 [file] [log] [blame]
// 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 'golden_file.dart';
void main() {
test('Deprecated annotation generation for messages', () {
final actual = File('out/protos/deprecations.pb.dart').readAsStringSync();
expectMatchesGoldenFile(actual, 'test/goldens/deprecations');
});
test('Deprecated annotation generation for enums', () {
final actual = File('out/protos/constructor_args/deprecations.pbenum.dart')
.readAsStringSync();
expectMatchesGoldenFile(actual, 'test/goldens/deprecations.pbenum');
});
}