refactor(server): asset stats (#3253)

* refactor(server): asset stats

* chore: open api
This commit is contained in:
Jason Rasmussen
2023-07-14 09:30:17 -04:00
committed by GitHub
parent 05e1a6d949
commit f952bc0b64
29 changed files with 601 additions and 844 deletions

View File

@@ -60,11 +60,6 @@ void main() {
// TODO
});
//Future<AssetCountByUserIdResponseDto> getArchivedAssetCountByUserId() async
test('test getArchivedAssetCountByUserId', () async {
// TODO
});
// Get a single asset's information
//
//Future<AssetResponseDto> getAssetById(String id, { String key }) async
@@ -82,13 +77,13 @@ void main() {
// TODO
});
//Future<AssetCountByUserIdResponseDto> getAssetCountByUserId() async
test('test getAssetCountByUserId', () async {
//Future<List<String>> getAssetSearchTerms() async
test('test getAssetSearchTerms', () async {
// TODO
});
//Future<List<String>> getAssetSearchTerms() async
test('test getAssetSearchTerms', () async {
//Future<AssetStatsResponseDto> getAssetStats({ bool isArchived, bool isFavorite }) async
test('test getAssetStats', () async {
// TODO
});

View File

@@ -11,32 +11,22 @@
import 'package:openapi/api.dart';
import 'package:test/test.dart';
// tests for AssetCountByUserIdResponseDto
// tests for AssetStatsResponseDto
void main() {
// final instance = AssetCountByUserIdResponseDto();
// final instance = AssetStatsResponseDto();
group('test AssetCountByUserIdResponseDto', () {
// int audio (default value: 0)
test('to test the property `audio`', () async {
group('test AssetStatsResponseDto', () {
// int images
test('to test the property `images`', () async {
// TODO
});
// int photos (default value: 0)
test('to test the property `photos`', () async {
// TODO
});
// int videos (default value: 0)
// int videos
test('to test the property `videos`', () async {
// TODO
});
// int other (default value: 0)
test('to test the property `other`', () async {
// TODO
});
// int total (default value: 0)
// int total
test('to test the property `total`', () async {
// TODO
});