-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into exception_handling_changes
- Loading branch information
Showing
17 changed files
with
119 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:at_commons/at_builders.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
group('A group of lookup verb builder tests', () { | ||
test('verify simple lookup command', () { | ||
var lookupVerbBuilder = LookupVerbBuilder() | ||
..atKey = 'phone' | ||
..sharedBy = 'alice'; | ||
expect(lookupVerbBuilder.buildCommand(), 'lookup:phone@alice\n'); | ||
}); | ||
test('verify lookup meta command', () { | ||
var lookupVerbBuilder = LookupVerbBuilder() | ||
..operation = 'meta' | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(lookupVerbBuilder.buildCommand(), 'lookup:meta:email@alice\n'); | ||
}); | ||
|
||
test('verify lookup all command', () { | ||
var lookupVerbBuilder = LookupVerbBuilder() | ||
..operation = 'all' | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(lookupVerbBuilder.buildCommand(), 'lookup:all:email@alice\n'); | ||
}); | ||
|
||
test('verify lookup bypass cache command', () { | ||
var lookupVerbBuilder = LookupVerbBuilder() | ||
..byPassCache = true | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(lookupVerbBuilder.buildCommand(), | ||
'lookup:bypassCache:true:email@alice\n'); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import 'package:at_commons/at_builders.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
group('A group of lookup verb builder tests', () { | ||
test('verify simple plookup command', () { | ||
var plookupVerbBuilder = PLookupVerbBuilder() | ||
..atKey = 'phone' | ||
..sharedBy = 'alice'; | ||
expect(plookupVerbBuilder.buildCommand(), 'plookup:phone@alice\n'); | ||
}); | ||
test('verify plookup meta command', () { | ||
var plookupVerbBuilder = PLookupVerbBuilder() | ||
..operation = 'meta' | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(plookupVerbBuilder.buildCommand(), 'plookup:meta:email@alice\n'); | ||
}); | ||
|
||
test('verify plookup all command', () { | ||
var plookupVerbBuilder = PLookupVerbBuilder() | ||
..operation = 'all' | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(plookupVerbBuilder.buildCommand(), 'plookup:all:email@alice\n'); | ||
}); | ||
|
||
test('verify plookup bypass cache command', () { | ||
var plookupVerbBuilder = PLookupVerbBuilder() | ||
..byPassCache = true | ||
..atKey = 'email' | ||
..sharedBy = 'alice'; | ||
expect(plookupVerbBuilder.buildCommand(), | ||
'plookup:bypassCache:true:email@alice\n'); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
# at_hive_recovery # | ||
<img width=250px src="https://atsign.dev/assets/img/@platform_logo_grey.svg?sanitize=true"> | ||
|
||
# at_hive_recovery | ||
|
||
**at_hive_recovery** tool for recovering corrupted hive boxes. | ||
|
||
Usage: | ||
|
||
``` | ||
dart bin/main.dart <atsign> <dir_path_of_hive_box> | ||
``` | ||
|
||
e.g | ||
|
||
dart bin/main.dart @alice /home/alice/storage/hive | ||
``` | ||
dart bin/main.dart @alice /home/alice/storage/hive | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters