github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/engine/sigslist_test.go (about) 1 // Copyright 2015 Keybase, Inc. All rights reserved. Use of 2 // this source code is governed by the included BSD license. 3 4 package engine 5 6 import "testing" 7 8 func TestSigsList(t *testing.T) { 9 tc := SetupEngineTest(t, "sigslist") 10 defer tc.Cleanup() 11 12 args := SigsListArgs{Username: "t_alice"} 13 eng := NewSigsList(tc.G, args) 14 m := NewMetaContextForTest(tc) 15 if err := RunEngine2(m, eng); err != nil { 16 t.Fatal(err) 17 } 18 19 s := eng.Sigs() 20 if len(s) != 3 { 21 t.Errorf("t_alice sig count: %d, expected 3", len(s)) 22 for _, s := range eng.Sigs() { 23 t.Logf("sig: %+v\n", s) 24 } 25 } 26 }