Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Feb 15, 2024
1 parent 7a91b43 commit 9d2c085
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
Expand Down
4 changes: 4 additions & 0 deletions dart_test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
tags:
kdbx3: {}
kdbx4: {}

# macOs github runners are slower
on_platform:
mac-os: {timeout: 2x}
8 changes: 2 additions & 6 deletions test/kdbx_binaries_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ Future<void> _testAddNewAttachment(String filePath) async {
f.body.rootGroup.addEntry(entry);
expect(entry.binaryEntries, hasLength(0));
entry.createBinary(
isProtected: false,
name: 'test.txt',
bytes: utf8.encode('Content1'));
isProtected: false, name: 'test.txt', bytes: utf8.encode('Content1'));
entry.createBinary(
isProtected: false,
name: 'test.txt',
bytes: utf8.encode('Content2'));
isProtected: false, name: 'test.txt', bytes: utf8.encode('Content2'));
return await f.save();
})();
{
Expand Down
31 changes: 0 additions & 31 deletions test/merge/kdbx_merge_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -758,13 +758,6 @@ void main() {
hasLength(0));
}),
);
// test(
// 'Adds binary to remote entry',
// () async => await withClock(fakeClock, () async {
// final file = await TestUtil.createRealFile(proceedSeconds);
// await TestUtil.saveAndRead(file);
// }),
// );
});

group('Group merges', () {
Expand Down Expand Up @@ -870,10 +863,6 @@ void main() {
);
});

// meh?
// 'merges binaries'
//('merges custom icons',

group('History merges', () {
/*
Expand Down Expand Up @@ -1401,24 +1390,4 @@ when merging, can look at this value to decide whether history entries from the
}),
);
});

// group('Kdbx4.1 merges', () {
// Future<KdbxFile> TestUtil.createRealFile(proceedSeconds) async {
// final file = TestUtil.createEmptyFile();
// _createEntry(file, file.body.rootGroup, 'test1', 'test1');
// final subGroup =
// file.createGroup(parent: file.body.rootGroup, name: 'Sub Group');
// _createEntry(file, subGroup, 'test2', 'test2');
// proceedSeconds(10);
// return await TestUtil.saveAndRead(file);
// }

// test('Newest file plugin data wins', () async {
// await withClock(fakeClock, () async {
// final file = await TestUtil.createRealFile(proceedSeconds);

// final fileMod = await TestUtil.saveAndRead(file);
// });
// });
// });
}

0 comments on commit 9d2c085

Please sign in to comment.