mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Add interface test cases for method specs without return types
This commit is contained in:
parent
57015bc8bd
commit
be3d497f8c
4
test/fixtures/go/interface-types.A.go
vendored
4
test/fixtures/go/interface-types.A.go
vendored
@ -8,4 +8,8 @@ i1
|
||||
io.Reader
|
||||
SomeMethod(s string) error
|
||||
}
|
||||
// Option is an optional value or context to a transformation, used at pipeline
|
||||
type OptionA interface {
|
||||
public()
|
||||
}
|
||||
}
|
||||
|
4
test/fixtures/go/interface-types.B.go
vendored
4
test/fixtures/go/interface-types.B.go
vendored
@ -8,4 +8,8 @@ i1
|
||||
io.Reader
|
||||
SomeMethod(s string) error
|
||||
}
|
||||
// Option is an optional value or context to a transformation, used at pipeline
|
||||
type OptionB interface {
|
||||
private()
|
||||
}
|
||||
}
|
||||
|
14
test/fixtures/go/interface-types.diffA-B.txt
vendored
14
test/fixtures/go/interface-types.diffA-B.txt
vendored
@ -33,4 +33,16 @@
|
||||
(Identifier)
|
||||
(
|
||||
(Identifier)
|
||||
(Identifier)))))))))
|
||||
(Identifier))))))
|
||||
(Context
|
||||
(Comment)
|
||||
(
|
||||
(Type
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Interface
|
||||
(MethodSignature
|
||||
(Empty)
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
([])))))))))
|
||||
|
14
test/fixtures/go/interface-types.diffB-A.txt
vendored
14
test/fixtures/go/interface-types.diffB-A.txt
vendored
@ -33,4 +33,16 @@
|
||||
(Identifier)
|
||||
(
|
||||
(Identifier)
|
||||
(Identifier)))))))))
|
||||
(Identifier))))))
|
||||
(Context
|
||||
(Comment)
|
||||
(
|
||||
(Type
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
(Interface
|
||||
(MethodSignature
|
||||
(Empty)
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
([])))))))))
|
||||
|
12
test/fixtures/go/interface-types.parseA.txt
vendored
12
test/fixtures/go/interface-types.parseA.txt
vendored
@ -30,4 +30,14 @@
|
||||
(Identifier)
|
||||
(
|
||||
(Identifier)
|
||||
(Identifier)))))))))
|
||||
(Identifier))))))
|
||||
(Context
|
||||
(Comment)
|
||||
(
|
||||
(Type
|
||||
(Identifier)
|
||||
(Interface
|
||||
(MethodSignature
|
||||
(Empty)
|
||||
(Identifier)
|
||||
([])))))))))
|
||||
|
12
test/fixtures/go/interface-types.parseB.txt
vendored
12
test/fixtures/go/interface-types.parseB.txt
vendored
@ -30,4 +30,14 @@
|
||||
(Identifier)
|
||||
(
|
||||
(Identifier)
|
||||
(Identifier)))))))))
|
||||
(Identifier))))))
|
||||
(Context
|
||||
(Comment)
|
||||
(
|
||||
(Type
|
||||
(Identifier)
|
||||
(Interface
|
||||
(MethodSignature
|
||||
(Empty)
|
||||
(Identifier)
|
||||
([])))))))))
|
||||
|
Loading…
Reference in New Issue
Block a user