chore: clean up code comments

This commit is contained in:
edde746
2026-08-10 20:28:41 +02:00
parent 5611c6785a
commit 69fadc220d
170 changed files with 324 additions and 1765 deletions
-20
View File
@@ -54,10 +54,6 @@ void main() {
},
};
// ============================================================
// Singleton
// ============================================================
group('singleton', () {
test('initialize swaps the underlying database', () async {
final newDb = AppDatabase.forTesting(NativeDatabase.memory());
@@ -113,10 +109,6 @@ void main() {
});
});
// ============================================================
// get / put — cache hit and miss
// ============================================================
group('get / put', () {
test('miss returns null for an unknown key', () async {
expect(await cache.get(ServerId('srv'), '/library/metadata/1'), isNull);
@@ -196,10 +188,6 @@ void main() {
});
});
// ============================================================
// deleteForServer / deleteForItem / clearAll
// ============================================================
group('deletion', () {
test('deleteForServer wipes only the targeted serverId', () async {
await cache.put(ServerId('srv-a'), '/library/metadata/1', mediaContainer(ratingKey: '1'));
@@ -247,10 +235,6 @@ void main() {
});
});
// ============================================================
// Pinning
// ============================================================
group('pinning', () {
test('isPinned defaults to false for a freshly cached item', () async {
await cache.put(ServerId('srv'), '/library/metadata/1', mediaContainer());
@@ -316,10 +300,6 @@ void main() {
});
});
// ============================================================
// getMetadata / getAllPinnedMetadata
// ============================================================
group('metadata extraction', () {
test('getMetadata returns null when the key is not cached', () async {
expect(await cache.getMetadata(ServerId('srv'), 'missing'), isNull);