Add replyCount in comments and unauthenticated feed api.

This commit is contained in:
Kavin 2022-10-18 09:39:16 +01:00
parent 7407348212
commit fd20ae95b1
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
22 changed files with 1743 additions and 22 deletions

View file

@ -0,0 +1,47 @@
import 'package:test/test.dart';
import 'package:piped_api/piped_api.dart';
/// tests for ChannelApi
void main() {
final instance = PipedApi().getChannelApi();
group(ChannelApi, () {
// Gets Channel Information from ID.
//
// Gets all available Channel information about a channel.
//
//Future<ChannelInfo> channelInfoId(String channelId) async
test('test channelInfoId', () async {
// TODO
});
// Gets Channel Information from name.
//
// Gets all available Channel information about a channel.
//
//Future<ChannelInfo> channelInfoName(String name) async
test('test channelInfoName', () async {
// TODO
});
// Gets Channel Information from username.
//
// Gets all available Channel information about a channel.
//
//Future<ChannelInfo> channelInfoUsername(String username) async
test('test channelInfoUsername', () async {
// TODO
});
// Gets more channel videos
//
// Gets more channel videos.
//
//Future<StreamsPage> channelNextPage(String channelId, String nextpage) async
test('test channelNextPage', () async {
// TODO
});
});
}

20
test/feed_api_test.dart Normal file
View file

@ -0,0 +1,20 @@
import 'package:test/test.dart';
import 'package:piped_api/piped_api.dart';
/// tests for FeedApi
void main() {
final instance = PipedApi().getFeedApi();
group(FeedApi, () {
// Generate a feed while unauthenticated, from a list of channelIds.
//
// Generates a user feed while unauthenticated.
//
//Future<BuiltList<StreamItem>> feedUnauthenticated(BuiltList<String> channels) async
test('test feedUnauthenticated', () async {
// TODO
});
});
}

29
test/search_api_test.dart Normal file
View file

@ -0,0 +1,29 @@
import 'package:test/test.dart';
import 'package:piped_api/piped_api.dart';
/// tests for SearchApi
void main() {
final instance = PipedApi().getSearchApi();
group(SearchApi, () {
// Searches for videos, channels, and playlists.
//
// Searches for videos, channels, and playlists.
//
//Future<SearchPage> search(String q, SearchFilter filter) async
test('test search', () async {
// TODO
});
// Gets more search results
//
// Gets more search results.
//
//Future<SearchPage> searchNextPage(String nextpage, String q, SearchFilter filter) async
test('test searchNextPage', () async {
// TODO
});
});
}

38
test/video_api_test.dart Normal file
View file

@ -0,0 +1,38 @@
import 'package:test/test.dart';
import 'package:piped_api/piped_api.dart';
/// tests for VideoApi
void main() {
final instance = PipedApi().getVideoApi();
group(VideoApi, () {
// Gets Comments
//
// Gets the comments for a video.
//
//Future<CommentsPage> comments(String videoId) async
test('test comments', () async {
// TODO
});
// Gets more comments
//
// Gets more comments.
//
//Future<CommentsPage> commentsNextPage(String videoId, String nextpage) async
test('test commentsNextPage', () async {
// TODO
});
// Gets Video Information
//
// Gets all available Stream information about a video.
//
//Future<VideoInfo> streamInfo(String videoId) async
test('test streamInfo', () async {
// TODO
});
});
}