fix(impl): refactor some logic, use new api
This commit is contained in:
parent
3642c247e5
commit
ca191dbf3b
3 changed files with 14 additions and 40 deletions
2
spec/fixtures/impl/reader_output.go
vendored
2
spec/fixtures/impl/reader_output.go
vendored
|
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
func (r Read2) Read(p []byte) (n int, err error) {
|
||||
func (r *Read2) Read(p []byte) (n int, err error) {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ T["impl"]["works w io.Writer"] = function()
|
|||
t.writefile(tmp, fixtures.input)
|
||||
|
||||
child.cmd("silent edit " .. tmp)
|
||||
child.fn.setpos(".", { child.fn.bufnr(tmp), 3, 6 })
|
||||
child.fn.setpos(".", { child.fn.bufnr(tmp), 3, 0 })
|
||||
child.cmd "GoImpl w io.Writer"
|
||||
child.cmd "write"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue