mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Update function declaration tests
This commit is contained in:
parent
77bdbdbb77
commit
b034e471fa
1
test/fixtures/go/function-declarations.A.go
vendored
1
test/fixtures/go/function-declarations.A.go
vendored
@ -5,3 +5,4 @@ func f1() {}
|
||||
func f2(a int, b, c, d string) int {}
|
||||
func f2() (int, error) {}
|
||||
func f2() (result int, err error) {}
|
||||
func lockedOSThread() bool
|
||||
|
1
test/fixtures/go/function-declarations.B.go
vendored
1
test/fixtures/go/function-declarations.B.go
vendored
@ -6,3 +6,4 @@ func fb(a int, b, c, d string) int {}
|
||||
func fc() (int, error) {}
|
||||
func fd() (result int, err error) {}
|
||||
func fe() () {;}
|
||||
func lockOSThread() int
|
||||
|
@ -54,4 +54,11 @@
|
||||
{+([])+}
|
||||
{+([])+}
|
||||
{+(NoOp
|
||||
{+(Empty)+})+})+})
|
||||
{+(Empty)+})+})+}
|
||||
(Function
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
{ (Identifier)
|
||||
->(Identifier) }
|
||||
([])
|
||||
(Empty)))
|
||||
|
@ -48,10 +48,20 @@
|
||||
(Identifier)
|
||||
(Identifier)))
|
||||
([]))
|
||||
{+(Function
|
||||
{+(Identifier)+}
|
||||
{+(Identifier)+}
|
||||
{+([])+}
|
||||
{+(Empty)+})+}
|
||||
{-(Function
|
||||
{-(Empty)-}
|
||||
{-(Identifier)-}
|
||||
{-([])-}
|
||||
{-([])-}
|
||||
{-(NoOp
|
||||
{-(Empty)-})-})-})
|
||||
{-(Empty)-})-})-}
|
||||
{-(Function
|
||||
{-(Identifier)-}
|
||||
{-(Identifier)-}
|
||||
{-([])-}
|
||||
{-(Empty)-})-})
|
||||
|
@ -43,4 +43,9 @@
|
||||
(
|
||||
(Identifier)
|
||||
(Identifier)))
|
||||
([])))
|
||||
([]))
|
||||
(Function
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
([])
|
||||
(Empty)))
|
||||
|
@ -50,4 +50,9 @@
|
||||
([])
|
||||
([])
|
||||
(NoOp
|
||||
(Empty))))
|
||||
(Empty)))
|
||||
(Function
|
||||
(Identifier)
|
||||
(Identifier)
|
||||
([])
|
||||
(Empty)))
|
||||
|
Loading…
Reference in New Issue
Block a user