(t *testing.T)
| 1060 | } |
| 1061 | |
| 1062 | func TestLogicalXor(t *testing.T) { |
| 1063 | src := `<? $a xor $b;` |
| 1064 | |
| 1065 | expected := &node.Root{ |
| 1066 | Position: &position.Position{ |
| 1067 | StartLine: 1, |
| 1068 | EndLine: 1, |
| 1069 | StartPos: 3, |
| 1070 | EndPos: 13, |
| 1071 | }, |
| 1072 | Stmts: []node.Node{ |
| 1073 | &stmt.Expression{ |
| 1074 | Position: &position.Position{ |
| 1075 | StartLine: 1, |
| 1076 | EndLine: 1, |
| 1077 | StartPos: 3, |
| 1078 | EndPos: 13, |
| 1079 | }, |
| 1080 | Expr: &binary.LogicalXor{ |
| 1081 | Position: &position.Position{ |
| 1082 | StartLine: 1, |
| 1083 | EndLine: 1, |
| 1084 | StartPos: 3, |
| 1085 | EndPos: 12, |
| 1086 | }, |
| 1087 | Left: &expr.Variable{ |
| 1088 | Position: &position.Position{ |
| 1089 | StartLine: 1, |
| 1090 | EndLine: 1, |
| 1091 | StartPos: 3, |
| 1092 | EndPos: 5, |
| 1093 | }, |
| 1094 | VarName: &node.Identifier{ |
| 1095 | Position: &position.Position{ |
| 1096 | StartLine: 1, |
| 1097 | EndLine: 1, |
| 1098 | StartPos: 3, |
| 1099 | EndPos: 5, |
| 1100 | }, |
| 1101 | Value: "a", |
| 1102 | }, |
| 1103 | }, |
| 1104 | Right: &expr.Variable{ |
| 1105 | Position: &position.Position{ |
| 1106 | StartLine: 1, |
| 1107 | EndLine: 1, |
| 1108 | StartPos: 10, |
| 1109 | EndPos: 12, |
| 1110 | }, |
| 1111 | VarName: &node.Identifier{ |
| 1112 | Position: &position.Position{ |
| 1113 | StartLine: 1, |
| 1114 | EndLine: 1, |
| 1115 | StartPos: 10, |
| 1116 | EndPos: 12, |
| 1117 | }, |
| 1118 | Value: "b", |
| 1119 | }, |
nothing calls this directly
no test coverage detected
searching dependent graphs…