File path: /sql12/test/src/net/sourceforge/squirrel_sql/plugins/dbdiff/ColumnDifferenceTest.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/plugins/dbdiff/ColumnDifferenceTest.java | |||
Method name: void testCol2AllowsNull()
|
Method name: void testCol1AllowsNull()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | columnDifference.setColumns(mockVarcharCol2Table1NotNullable, ↵ | 1 | columnDifference.setColumns(mockVarcharCol2Table1Nullable, ↵ | |
2 | mockVarcharCol2Table1Nullable);↵ | 2 | mockVarcharCol2Table1NotNullable);↵ | |
3 | assertTrue(columnDifference.col2AllowsNull());↵ | 3 | assertTrue(columnDifference.col1AllowsNull());↵ | |
4 | ↵ | |||
5 | columnDifference.setColumns(mockVarcharCol2Table1Nullable, ↵ | 4 | columnDifference.setColumns(mockVarcharCol2Table1NotNullable, ↵ | |
6 | mockVarcharCol2Table1NotNullable);↵ | 5 | mockVarcharCol2Table1Nullable);↵ | |
7 | assertFalse(columnDifference.col2AllowsNull()); | 6 | assertFalse(columnDifference.col1AllowsNull()); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | columnDifference.setColumns(mockVarcharCol2Table1NotNullable, mockVarcharCol2Table1Nullable); |
| 1 | columnDifference.setColumns(mockVarcharCol2Table1Nullable, mockVarcharCol2Table1NotNullable); | |||||||||||||
2 | assertTrue(columnDifference.col2AllowsNull()); |
| 2 | assertTrue(columnDifference.col1AllowsNull()); | |||||||||||||
3 | columnDifference.setColumns(mockVarcharCol2Table1Nullable, mockVarcharCol2Table1NotNullable); |
| 3 | columnDifference.setColumns(mockVarcharCol2Table1NotNullable, mockVarcharCol2Table1Nullable); | |||||||||||||
4 | assertFalse(columnDifference.col2AllowsNull()); |
| 4 | assertFalse(columnDifference.col1AllowsNull()); |
Row | Violation |
---|---|
1 | Expression columnDifference.col2AllowsNull() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression columnDifference.col1AllowsNull() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression columnDifference.col2AllowsNull() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression columnDifference.col1AllowsNull() cannot be parameterized, because it has dependencies to/from statements that will be extracted |