renamed test groups

This commit is contained in:
Vadim 2023-06-15 14:57:03 +02:00
parent f9b18330cd
commit 35af009f99
4 changed files with 14 additions and 14 deletions

View file

@ -50,7 +50,7 @@ void main() {
}); });
group( group(
'`MeasureEvent` tests', '`MeasureEvent`',
() { () {
blocTest<MeteringBloc, MeteringState>( blocTest<MeteringBloc, MeteringState>(
'`MeasureEvent` -> success', '`MeasureEvent` -> success',
@ -144,7 +144,7 @@ void main() {
); );
group( group(
'`IsoChangedEvent` tests', '`IsoChangedEvent`',
() { () {
blocTest<MeteringBloc, MeteringState>( blocTest<MeteringBloc, MeteringState>(
'Pick different ISO (ev100 != null)', 'Pick different ISO (ev100 != null)',
@ -263,7 +263,7 @@ void main() {
); );
group( group(
'`NdChangedEvent` tests', '`NdChangedEvent`',
() { () {
blocTest<MeteringBloc, MeteringState>( blocTest<MeteringBloc, MeteringState>(
'Pick different ND (ev100 != null)', 'Pick different ND (ev100 != null)',
@ -378,7 +378,7 @@ void main() {
); );
group( group(
'`FilmChangedEvent` tests', '`FilmChangedEvent`',
() { () {
blocTest<MeteringBloc, MeteringState>( blocTest<MeteringBloc, MeteringState>(
'Pick different film with different ISO', 'Pick different film with different ISO',
@ -487,7 +487,7 @@ void main() {
// TODO(vodemn): when this feautre is enabled // TODO(vodemn): when this feautre is enabled
// group( // group(
// '`EquipmentProfileChangedEvent` tests', // '`EquipmentProfileChangedEvent`',
// () { // () {
// //
// }, // },

View file

@ -16,7 +16,7 @@ void main() {
}); });
group( group(
'`MeasureEvent` tests', '`MeasureEvent`',
() { () {
blocTest<MeteringCommunicationBloc, MeteringCommunicationState>( blocTest<MeteringCommunicationBloc, MeteringCommunicationState>(
'Multiple consequtive measure events', 'Multiple consequtive measure events',
@ -60,7 +60,7 @@ void main() {
); );
group( group(
'`MeteringInProgressEvent` tests', '`MeteringInProgressEvent`',
() { () {
blocTest<MeteringCommunicationBloc, MeteringCommunicationState>( blocTest<MeteringCommunicationBloc, MeteringCommunicationState>(
'Multiple consequtive in progress events', 'Multiple consequtive in progress events',
@ -83,7 +83,7 @@ void main() {
); );
group( group(
'`MeteringEndedEvent` tests', '`MeteringEndedEvent`',
() { () {
blocTest<MeteringCommunicationBloc, MeteringCommunicationState>( blocTest<MeteringCommunicationBloc, MeteringCommunicationState>(
'Multiple consequtive ended events', 'Multiple consequtive ended events',

View file

@ -119,7 +119,7 @@ void main() {
}); });
group( group(
'`RequestPermissionEvent` tests', '`RequestPermissionEvent`',
() { () {
blocTest<CameraContainerBloc, CameraContainerState>( blocTest<CameraContainerBloc, CameraContainerState>(
'Request denied', 'Request denied',
@ -176,7 +176,7 @@ void main() {
); );
group( group(
'`InitializeEvent`/`DeinitializeEvent` tests', '`InitializeEvent`/`DeinitializeEvent`',
() { () {
blocTest<CameraContainerBloc, CameraContainerState>( blocTest<CameraContainerBloc, CameraContainerState>(
'No cameras detected error', 'No cameras detected error',
@ -269,7 +269,7 @@ void main() {
); );
group( group(
'`_takePicture()` tests', '`_takePicture()`',
() { () {
blocTest<CameraContainerBloc, CameraContainerState>( blocTest<CameraContainerBloc, CameraContainerState>(
'Returned ev100 == null', 'Returned ev100 == null',
@ -325,7 +325,7 @@ void main() {
); );
group( group(
'`ZoomChangedEvent` tests', '`ZoomChangedEvent`',
() { () {
blocTest<CameraContainerBloc, CameraContainerState>( blocTest<CameraContainerBloc, CameraContainerState>(
'Set zoom multiple times', 'Set zoom multiple times',
@ -372,7 +372,7 @@ void main() {
); );
group( group(
'`ExposureOffsetChangedEvent`/`ExposureOffsetResetEvent` tests', '`ExposureOffsetChangedEvent`/`ExposureOffsetResetEvent`',
() { () {
blocTest<CameraContainerBloc, CameraContainerState>( blocTest<CameraContainerBloc, CameraContainerState>(
'Set exposure offset multiple times and reset', 'Set exposure offset multiple times and reset',

View file

@ -39,7 +39,7 @@ void main() {
}); });
group( group(
'`LuxMeteringEvent` tests', '`LuxMeteringEvent`',
() { () {
const List<int> luxIterable = [1, 2, 2, 2, 3]; const List<int> luxIterable = [1, 2, 2, 2, 3];
final List<double> resultList = luxIterable.map((lux) => log2(lux / 2.5)).toList(); final List<double> resultList = luxIterable.map((lux) => log2(lux / 2.5)).toList();