github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/cmds/elvish/edit/completion/complete_redir_test.go (about)

     1  package completion
     2  
     3  import "testing"
     4  
     5  func TestFindRedirComplContext(t *testing.T) {
     6  	testComplContextFinder(t, "findRedirComplContext", findRedirComplContext, []complContextFinderTest{
     7  		{"a >", &redirComplContext{
     8  			complContextCommon{"", quotingForEmptySeed, 3, 3}}},
     9  		{"a >b", &redirComplContext{
    10  			complContextCommon{"b", quotingForEmptySeed, 3, 4}}},
    11  	})
    12  }