github.com/kolbycrouch/elvish@v0.14.1-0.20210614162631-215b9ac1c423/pkg/cli/histutil/mem_store_test.go (about) 1 package histutil 2 3 import ( 4 "testing" 5 6 "src.elv.sh/pkg/store" 7 ) 8 9 func TestMemStore_Cursor(t *testing.T) { 10 s := NewMemStore("+ 0", "- 1", "+ 2") 11 testCursorIteration(t, s.Cursor("+"), []store.Cmd{ 12 {Text: "+ 0", Seq: 0}, 13 {Text: "+ 2", Seq: 2}, 14 }) 15 } 16 17 // Remaining methods tested along with HybridStore