(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func TestFunctionFullyQualified(t *testing.T) { |
| 159 | src := `<? \foo([]);` |
| 160 | |
| 161 | expected := &node.Root{ |
| 162 | Position: &position.Position{ |
| 163 | StartLine: 1, |
| 164 | EndLine: 1, |
| 165 | StartPos: 3, |
| 166 | EndPos: 12, |
| 167 | }, |
| 168 | Stmts: []node.Node{ |
| 169 | &stmt.Expression{ |
| 170 | Position: &position.Position{ |
| 171 | StartLine: 1, |
| 172 | EndLine: 1, |
| 173 | StartPos: 3, |
| 174 | EndPos: 12, |
| 175 | }, |
| 176 | Expr: &expr.FunctionCall{ |
| 177 | Position: &position.Position{ |
| 178 | StartLine: 1, |
| 179 | EndLine: 1, |
| 180 | StartPos: 3, |
| 181 | EndPos: 11, |
| 182 | }, |
| 183 | Function: &name.FullyQualified{ |
| 184 | Position: &position.Position{ |
| 185 | StartLine: 1, |
| 186 | EndLine: 1, |
| 187 | StartPos: 3, |
| 188 | EndPos: 7, |
| 189 | }, |
| 190 | Parts: []node.Node{ |
| 191 | &name.NamePart{ |
| 192 | Position: &position.Position{ |
| 193 | StartLine: 1, |
| 194 | EndLine: 1, |
| 195 | StartPos: 4, |
| 196 | EndPos: 7, |
| 197 | }, |
| 198 | Value: "foo", |
| 199 | }, |
| 200 | }, |
| 201 | }, |
| 202 | ArgumentList: &node.ArgumentList{ |
| 203 | Position: &position.Position{ |
| 204 | StartLine: 1, |
| 205 | EndLine: 1, |
| 206 | StartPos: 7, |
| 207 | EndPos: 11, |
| 208 | }, |
| 209 | Arguments: []node.Node{ |
| 210 | &node.Argument{ |
| 211 | Position: &position.Position{ |
| 212 | StartLine: 1, |
| 213 | EndLine: 1, |
| 214 | StartPos: 8, |
| 215 | EndPos: 10, |
nothing calls this directly
no test coverage detected
searching dependent graphs…