test(impl): add all possible cases
This commit is contained in:
parent
1203550399
commit
498072b5dc
10 changed files with 65 additions and 16 deletions
3
spec/fixtures/impl/closer_input.go
vendored
Normal file
3
spec/fixtures/impl/closer_input.go
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
package main
|
||||
|
||||
type CloserTest struct{}
|
||||
8
spec/fixtures/impl/closer_output.go
vendored
Normal file
8
spec/fixtures/impl/closer_output.go
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package main
|
||||
|
||||
type CloserTest2 struct{}
|
||||
|
||||
func (closertest *CloserTest2) Close() error {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
3
spec/fixtures/impl/impl_input.go
vendored
3
spec/fixtures/impl/impl_input.go
vendored
|
|
@ -1,3 +0,0 @@
|
|||
package main
|
||||
|
||||
type Tester struct{}
|
||||
8
spec/fixtures/impl/impl_output.go
vendored
8
spec/fixtures/impl/impl_output.go
vendored
|
|
@ -1,8 +0,0 @@
|
|||
package main
|
||||
|
||||
type Tester2 struct{}
|
||||
|
||||
func (w *Tester2) Write(p []byte) (n int, err error) {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
3
spec/fixtures/impl/reader_input.go
vendored
Normal file
3
spec/fixtures/impl/reader_input.go
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
package main
|
||||
|
||||
type Read struct{}
|
||||
8
spec/fixtures/impl/reader_output.go
vendored
Normal file
8
spec/fixtures/impl/reader_output.go
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package main
|
||||
|
||||
func (r Read2) Read(p []byte) (n int, err error) {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
|
||||
type Read2 struct{}
|
||||
3
spec/fixtures/impl/writer_input.go
vendored
Normal file
3
spec/fixtures/impl/writer_input.go
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
package main
|
||||
|
||||
type WriterTest struct{}
|
||||
8
spec/fixtures/impl/writer_output.go
vendored
Normal file
8
spec/fixtures/impl/writer_output.go
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package main
|
||||
|
||||
type WriterTest2 struct{}
|
||||
|
||||
func (w *WriterTest2) Write(p []byte) (n int, err error) {
|
||||
panic("not implemented") // TODO: Implement
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue