chore: clean up code comments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user