Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
wip #377
  • Loading branch information
zin- committed Aug 28, 2024
1 parent 997c93b commit b1e6946
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/repositories/act_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ActRepository extends DatabaseTupleRepository<ActEntity, SavedActEntity> {
condition: And(
[
if (id != null) Equals(defPkId, id),

Check warning on line 114 in lib/repositories/act_repository.dart

View check run for this annotation

Codecov / codecov/patch

lib/repositories/act_repository.dart#L109-L114

Added lines #L109 - L114 were not covered by tests
if (condition != null) condition,
if (condition != null) condition, // coverage:ignore-line
],
),
),
Expand Down
7 changes: 4 additions & 3 deletions lib/repositories/mem_item_entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ class MemItemEntity extends MemItemV2 with Entity {
: this.fromMap(
MemItemEntity(memItem.memId, memItem.type, memItem.value).toMap);

Check warning on line 22 in lib/repositories/mem_item_entity.dart

View check run for this annotation

Codecov / codecov/patch

lib/repositories/mem_item_entity.dart#L20-L22

Added lines #L20 - L22 were not covered by tests

// coverage:ignore-start
@override
Entity copiedWith() => throw UnimplementedError(); // coverage:ignore-line
Entity copiedWith() => throw UnimplementedError();

// @override
// Entity copiedWith({
// int Function()? memId,
Expand All @@ -34,6 +36,7 @@ class MemItemEntity extends MemItemV2 with Entity {
// type == null ? this.type : type(),
// value == null ? this.value : value(),
// );
// coverage:ignore-end

@override
Map<String, dynamic> get toMap => {
Expand Down Expand Up @@ -67,8 +70,6 @@ class SavedMemItemEntity extends MemItemEntity with DatabaseTupleEntity<int> {
..updatedAt = updatedAt
..archivedAt = archivedAt;

Check warning on line 71 in lib/repositories/mem_item_entity.dart

View check run for this annotation

Codecov / codecov/patch

lib/repositories/mem_item_entity.dart#L67-L71

Added lines #L67 - L71 were not covered by tests

@override
Entity copiedWith() => throw UnimplementedError(); // coverage:ignore-line
// @override
// SavedMemItemEntity copiedWith({
// int Function()? memId,
Expand Down
8 changes: 4 additions & 4 deletions lib/repositories/mem_notification_entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class MemNotificationEntity extends MemNotificationV2 with Entity {
MemNotificationEntity.fromV1(MemNotification v1)
: super(v1.memId, v1.type, v1.time, v1.message);

Check warning on line 18 in lib/repositories/mem_notification_entity.dart

View check run for this annotation

Codecov / codecov/patch

lib/repositories/mem_notification_entity.dart#L17-L18

Added lines #L17 - L18 were not covered by tests

// coverage:ignore-start
@override
Entity copiedWith() {
// TODO: implement copiedWith
throw UnimplementedError();
}
Entity copiedWith() => throw UnimplementedError();

// coverage:ignore-end

@override
Map<String, dynamic> get toMap => {
Expand Down

0 comments on commit b1e6946

Please sign in to comment.