Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.978 | statement_list[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 66 | src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs |
2 | 11 | 86 | src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs |
| ||||
configuration.AddResource("NHibernate.Test.Tools.hbm2ddl.SchemaMetadataUpdaterTest.HeavyEntity.hbm.xml", GetType().Assembly); SchemaMetadataUpdater.QuoteTableAndColumns(configuration); var cm = configuration.GetClassMapping( typeof(Order)); Assert.That(cm.Table.IsQuoted); var culs = new List<Column> (cm.Table.ColumnIterator); Assert.That(GetColumnByName(culs, "From").IsQuoted); Assert.That(GetColumnByName(culs, "And").IsQuoted); Assert.That(GetColumnByName(culs, "Select").IsQuoted); Assert.That(GetColumnByName(culs, "Column").IsQuoted); Assert.That( !GetColumnByName(culs, "Name").IsQuoted); |
| ||||
configuration.AddResource("NHibernate.Test.Tools.hbm2ddl.SchemaMetadataUpdaterTest.HeavyEntity.hbm.xml", GetType().Assembly); configuration.BuildSessionFactory(); var cm = configuration.GetClassMapping( typeof( Order)); Assert.That(cm.Table.IsQuoted); var culs = new List<Column> (cm.Table.ColumnIterator); Assert.That(GetColumnByName(culs, "From").IsQuoted); Assert.That(GetColumnByName(culs, "And").IsQuoted); Assert.That(GetColumnByName(culs, "Select").IsQuoted); Assert.That(GetColumnByName(culs, "Column").IsQuoted); Assert.That( !GetColumnByName(culs, "Name").IsQuoted); |
| |||
configuration.AddResource("NHibernate.Test.Tools.hbm2ddl.SchemaMetadataUpdaterTest.HeavyEntity.hbm.xml", GetType().Assembly); [[#variable53ace620]]. [[#variable57d13500]]( [[#variable53ace3a0]]); var cm = configuration.GetClassMapping( typeof(Order)); Assert.That(cm.Table.IsQuoted); var culs = new List<Column> (cm.Table.ColumnIterator); Assert.That(GetColumnByName(culs, "From").IsQuoted); Assert.That(GetColumnByName(culs, "And").IsQuoted); Assert.That(GetColumnByName(culs, "Select").IsQuoted); Assert.That(GetColumnByName(culs, "Column").IsQuoted); Assert.That( !GetColumnByName(culs, "Name").IsQuoted); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#53ace620]] | SchemaMetadataUpdater |
1 | 2 | [[#53ace620]] | configuration |
2 | 1 | [[#57d13500]] | QuoteTableAndColumns |
2 | 2 | [[#57d13500]] | BuildSessionFactory |
3 | 1 | [[#53ace3a0]] | configuration |
3 | 2 | [[#53ace3a0]] |