2fbcf6ee6d
A few things at once because it was faster to get a demo out the door. Skipping most test implementation though I made failing stubs so I know what to fill in later. * Get/Post WalletState * downloadKey/email so that a second client can log in, and/or recover from lost client * Test client in Python to demonstrate the above * Organize into packages
19 lines
480 B
Go
19 lines
480 B
Go
package wallet
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// Test stubs for now
|
|
|
|
func TestWalletSequence(t *testing.T) {
|
|
t.Fatalf("Test me: test that walletState.Sequence() == walletState.lastSynced[wallet.DeviceID]")
|
|
}
|
|
|
|
func TestWalletValidateWalletState(t *testing.T) {
|
|
// walletState.DeviceID in walletState.lastSynced
|
|
// Sequence for lastSynced all > 1
|
|
t.Fatalf("Test me: Implement and test validateWalletState.")
|
|
}
|
|
|
|
// TODO - other wallet integrity stuff? particularly related to sequence?
|