Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 0 | 1.000 | statement_list[13] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 215 | src/NHibernate.Test/Legacy/SQLFunctionsTest.cs |
2 | 15 | 382 | src/NHibernate.Test/Legacy/SQLFunctionsTest.cs |
| ||||
q.SetString("name", "Simple 1"); Assert.AreEqual(1, q.List().Count); simple = (Simple) q.List()[0]; q.SetString("name", "Simple 2"); Assert.AreEqual(0, q.List().Count); Assert.AreEqual(0, q.List().Count); simple.Name = "Simple 2"; Assert.AreEqual(1, q.List().Count); Assert.AreEqual(1, q.List().Count); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); |
| ||||
q.SetString("name", "Simple 1"); Assert.AreEqual(1, q.List().Count); simple = (Simple) q.List()[0]; q.SetString("name", "Simple 2"); Assert.AreEqual(0, q.List().Count); Assert.AreEqual(0, q.List().Count); simple.Name = "Simple 2"; Assert.AreEqual(1, q.List().Count); Assert.AreEqual(1, q.List().Count); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); |
| |||
q.SetString("name", "Simple 1"); Assert.AreEqual(1, q.List().Count); simple = (Simple)q.List()[0]; q.SetString("name", "Simple 2"); Assert.AreEqual(0, q.List().Count); Assert.AreEqual(0, q.List().Count); simple.Name = "Simple 2"; Assert.AreEqual(1, q.List().Count); Assert.AreEqual(1, q.List().Count); t.Commit(); s.Close(); s = OpenSession(); t = s.BeginTransaction(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |