(t *testing.T)
| 1885 | } |
| 1886 | |
| 1887 | func TestSmaller(t *testing.T) { |
| 1888 | src := `<? $a < $b;` |
| 1889 | |
| 1890 | expected := &node.Root{ |
| 1891 | Position: &position.Position{ |
| 1892 | StartLine: 1, |
| 1893 | EndLine: 1, |
| 1894 | StartPos: 3, |
| 1895 | EndPos: 11, |
| 1896 | }, |
| 1897 | Stmts: []node.Node{ |
| 1898 | &stmt.Expression{ |
| 1899 | Position: &position.Position{ |
| 1900 | StartLine: 1, |
| 1901 | EndLine: 1, |
| 1902 | StartPos: 3, |
| 1903 | EndPos: 11, |
| 1904 | }, |
| 1905 | Expr: &binary.Smaller{ |
| 1906 | Position: &position.Position{ |
| 1907 | StartLine: 1, |
| 1908 | EndLine: 1, |
| 1909 | StartPos: 3, |
| 1910 | EndPos: 10, |
| 1911 | }, |
| 1912 | Left: &expr.Variable{ |
| 1913 | Position: &position.Position{ |
| 1914 | StartLine: 1, |
| 1915 | EndLine: 1, |
| 1916 | StartPos: 3, |
| 1917 | EndPos: 5, |
| 1918 | }, |
| 1919 | VarName: &node.Identifier{ |
| 1920 | Position: &position.Position{ |
| 1921 | StartLine: 1, |
| 1922 | EndLine: 1, |
| 1923 | StartPos: 3, |
| 1924 | EndPos: 5, |
| 1925 | }, |
| 1926 | Value: "a", |
| 1927 | }, |
| 1928 | }, |
| 1929 | Right: &expr.Variable{ |
| 1930 | Position: &position.Position{ |
| 1931 | StartLine: 1, |
| 1932 | EndLine: 1, |
| 1933 | StartPos: 8, |
| 1934 | EndPos: 10, |
| 1935 | }, |
| 1936 | VarName: &node.Identifier{ |
| 1937 | Position: &position.Position{ |
| 1938 | StartLine: 1, |
| 1939 | EndLine: 1, |
| 1940 | StartPos: 8, |
| 1941 | EndPos: 10, |
| 1942 | }, |
| 1943 | Value: "b", |
| 1944 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…