Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Code

392 commit(s) on main

Merge change request 01M70WES5ZZDJ6RP226WB11BBZ: Let people rename and remove their own passkeys keenan · 1h ago 4b8c9e1d
history blame raw 480 B
1package id
2
3import (
4 "testing"
5 "time"
6)
7
8func TestULIDAndOrdering(t *testing.T) {
9 t.Parallel()
10 a, err := New(time.Unix(1700000000, 0))
11 if err != nil {
12 t.Fatal(err)
13 }
14 b, err := New(time.Unix(1700000001, 0))
15 if err != nil {
16 t.Fatal(err)
17 }
18 if !Valid(a) || !Valid(b) {
19 t.Fatalf("invalid ulids: %q %q", a, b)
20 }
21 if a >= b {
22 t.Fatalf("ulids do not sort by time: %q >= %q", a, b)
23 }
24 if Valid("lowercase0123456789ABCDEFGH") {
25 t.Fatal("lowercase ulid accepted")
26 }
27}
28