(t *testing.T)
| 1810 | } |
| 1811 | |
| 1812 | func TestSmallerOrEqual(t *testing.T) { |
| 1813 | src := `<? $a <= $b;` |
| 1814 | |
| 1815 | expected := &node.Root{ |
| 1816 | Position: &position.Position{ |
| 1817 | StartLine: 1, |
| 1818 | EndLine: 1, |
| 1819 | StartPos: 3, |
| 1820 | EndPos: 12, |
| 1821 | }, |
| 1822 | Stmts: []node.Node{ |
| 1823 | &stmt.Expression{ |
| 1824 | Position: &position.Position{ |
| 1825 | StartLine: 1, |
| 1826 | EndLine: 1, |
| 1827 | StartPos: 3, |
| 1828 | EndPos: 12, |
| 1829 | }, |
| 1830 | Expr: &binary.SmallerOrEqual{ |
| 1831 | Position: &position.Position{ |
| 1832 | StartLine: 1, |
| 1833 | EndLine: 1, |
| 1834 | StartPos: 3, |
| 1835 | EndPos: 11, |
| 1836 | }, |
| 1837 | Left: &expr.Variable{ |
| 1838 | Position: &position.Position{ |
| 1839 | StartLine: 1, |
| 1840 | EndLine: 1, |
| 1841 | StartPos: 3, |
| 1842 | EndPos: 5, |
| 1843 | }, |
| 1844 | VarName: &node.Identifier{ |
| 1845 | Position: &position.Position{ |
| 1846 | StartLine: 1, |
| 1847 | EndLine: 1, |
| 1848 | StartPos: 3, |
| 1849 | EndPos: 5, |
| 1850 | }, |
| 1851 | Value: "a", |
| 1852 | }, |
| 1853 | }, |
| 1854 | Right: &expr.Variable{ |
| 1855 | Position: &position.Position{ |
| 1856 | StartLine: 1, |
| 1857 | EndLine: 1, |
| 1858 | StartPos: 9, |
| 1859 | EndPos: 11, |
| 1860 | }, |
| 1861 | VarName: &node.Identifier{ |
| 1862 | Position: &position.Position{ |
| 1863 | StartLine: 1, |
| 1864 | EndLine: 1, |
| 1865 | StartPos: 9, |
| 1866 | EndPos: 11, |
| 1867 | }, |
| 1868 | Value: "b", |
| 1869 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…