Move and comment a function
This commit is contained in:
parent
6610d7800b
commit
15c68d7153
1 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,11 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Utilitiy function that copies a time and then returns a pointer to it
|
||||||
|
func timePtr(t time.Time) *time.Time {
|
||||||
|
return &t
|
||||||
|
}
|
||||||
|
|
||||||
// Test insertToken, using GetToken as a helper
|
// Test insertToken, using GetToken as a helper
|
||||||
// Try insertToken twice with the same public key, error the second time
|
// Try insertToken twice with the same public key, error the second time
|
||||||
func TestStoreInsertToken(t *testing.T) {
|
func TestStoreInsertToken(t *testing.T) {
|
||||||
|
@ -228,10 +233,6 @@ func TestStoreSaveToken(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func timePtr(t time.Time) *time.Time {
|
|
||||||
return &t
|
|
||||||
}
|
|
||||||
|
|
||||||
// test GetToken using insertToken and updateToken as helpers (so we can set expiration timestamps)
|
// test GetToken using insertToken and updateToken as helpers (so we can set expiration timestamps)
|
||||||
// normal
|
// normal
|
||||||
// not found for pubkey
|
// not found for pubkey
|
||||||
|
|
Loading…
Reference in a new issue