test: prune low-value coverage

This commit is contained in:
edde746
2026-08-06 05:33:18 +02:00
parent 094be1fa3e
commit db4f7a643b
27 changed files with 5 additions and 418 deletions
@@ -34,48 +34,6 @@ void main() {
});
});
group('MediaBrowserDialect capabilities', () {
test('Jellyfin-only features are off for Emby', () {
expect(MediaBrowserDialect.jellyfin.supportsQuickConnect, isTrue);
expect(MediaBrowserDialect.emby.supportsQuickConnect, isFalse);
expect(MediaBrowserDialect.jellyfin.supportsTrickplay, isTrue);
expect(MediaBrowserDialect.emby.supportsTrickplay, isFalse);
expect(MediaBrowserDialect.jellyfin.supportsMediaSegments, isTrue);
expect(MediaBrowserDialect.emby.supportsMediaSegments, isFalse);
// Emby resolves /Audio/{id}/Lyrics to audio streaming with `Lyrics` as
// the container and starts a failing ffmpeg process, so this gate is
// load-bearing rather than cosmetic.
expect(MediaBrowserDialect.jellyfin.supportsLyrics, isTrue);
expect(MediaBrowserDialect.emby.supportsLyrics, isFalse);
expect(MediaBrowserDialect.jellyfin.supportsAggregateItemFilters, isTrue);
expect(MediaBrowserDialect.emby.supportsAggregateItemFilters, isFalse);
});
test('only Emby needs the pre-10.9 user-scoped item routes', () {
expect(MediaBrowserDialect.emby.requiresUserScopedItemRoutes, isTrue);
expect(MediaBrowserDialect.jellyfin.requiresUserScopedItemRoutes, isFalse);
});
test('LAN discovery payloads are distinct so the datagram identifies the dialect', () {
expect(MediaBrowserDialect.jellyfin.lanDiscoveryMessage, 'who is JellyfinServer?');
expect(MediaBrowserDialect.emby.lanDiscoveryMessage, 'who is EmbyServer?');
});
test('Emby adds its 8920 HTTPS default to the port guesses', () {
expect(MediaBrowserDialect.jellyfin.httpsPortGuesses, [8096]);
expect(MediaBrowserDialect.emby.httpsPortGuesses, contains(8920));
expect(MediaBrowserDialect.emby.httpsPortGuesses, contains(8096));
});
test('product names are the untranslated brand names', () {
expect(MediaBrowserDialect.jellyfin.productName, 'Jellyfin');
expect(MediaBrowserDialect.emby.productName, 'Emby');
});
});
group('MediaBrowserDialect.detectFromPublicSystemInfo', () {
test('identifies a real Jellyfin 10.10.7 body by ProductName', () {
-7
View File
@@ -118,13 +118,6 @@ void main() {
});
});
group('MediaPlaylist.displayTitle', () {
test('is an alias of title', () {
final pl = _playlist(title: 'Anything');
expect(pl.displayTitle, 'Anything');
expect(pl.displayTitle, pl.title);
});
});
group('MediaPlaylist.globalKey', () {
test('uses "<serverId>:<id>" when serverId is set', () {