mirror of https://github.com/grpc/grpc-dart.git
16 lines
448 B
Dart
16 lines
448 B
Dart
import 'package:grpc/src/shared/codec.dart';
|
|
import 'package:grpc/src/shared/codec_registry.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
test('CodecRegistry register adds new encodings', () {
|
|
final registry = CodecRegistry();
|
|
expect(registry.supportedEncodings, 'identity');
|
|
});
|
|
|
|
test('CodecRegistry lookup', () {
|
|
final registry = CodecRegistry();
|
|
expect(registry.lookup('identity'), const IdentityCodec());
|
|
});
|
|
}
|