Browse Source

nextcloud: Make coverage reports more useful

pull/83/head
jld3103 2 years ago
parent
commit
e10ab7dbf3
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/nextcloud/lib/src/helpers.dart
  2. 306
      packages/nextcloud/lib/src/nextcloud.openapi.dart
  3. 2
      packages/nextcloud/lib/src/webdav/file.dart
  4. 2
      packages/nextcloud/lib/src/webdav/props.dart
  5. 1
      packages/nextcloud/test/helper.dart

2
packages/nextcloud/lib/src/helpers.dart

@ -44,11 +44,13 @@ extension NextcloudNotificationsPushProxy on NotificationsClient {
final response = await request.close();
if (response.statusCode != 200) {
// coverage:ignore-start
throw ApiException(
response.statusCode,
{}, // TODO
await response.bodyBytes,
);
// coverage:ignore-end
}
}

306
packages/nextcloud/lib/src/nextcloud.openapi.dart

File diff suppressed because it is too large Load Diff

2
packages/nextcloud/lib/src/webdav/file.dart

@ -149,10 +149,12 @@ class WebDavFile {
/// Returns if the file is a directory
bool get isDirectory => path.endsWith('/') || (isCollection ?? false);
// coverage:ignore-start
@override
String toString() =>
// ignore: lines_longer_than_80_chars
'WebDavFile{name: $name, id: $id, isDirectory: $isDirectory, path: $path, mimeType: $mimeType, size: $size, modificationTime: $lastModified, shareTypes: $shareTypes}';
// coverage:ignore-end
}
/// Converts a single d:response to a [WebDavFile]

2
packages/nextcloud/lib/src/webdav/props.dart

@ -159,6 +159,8 @@ enum WebDavProps {
/// Name of the prop
final String name;
// coverage:ignore-start
@override
String toString() => name;
// coverage:ignore-end
}

1
packages/nextcloud/test/helper.dart

@ -263,6 +263,7 @@ class TestDockerHelper {
generateCreateUserInstruction(user),
],
],
'RUN ./occ app:enable password_policy',
'',
];

Loading…
Cancel
Save