Move and comment a function

This commit is contained in:
Daniel Krol 2022-06-02 14:04:33 -04:00
parent 6610d7800b
commit 15c68d7153

View file

@ -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