github.com/hugelgupf/u-root@v0.0.0-20191023214958-4807c632154c/cmds/core/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  }