CloneSet261


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.978statement_list[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11366
src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs
21186
src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs
Clone Instance
1
Line Count
13
Source Line
66
Source File
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);


Clone Instance
2
Line Count
11
Source Line
86
Source File
src/NHibernate.Test/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs

                        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);


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53ace620]]
SchemaMetadataUpdater 
12[[#53ace620]]
configuration 
21[[#57d13500]]
QuoteTableAndColumns 
22[[#57d13500]]
BuildSessionFactory 
31[[#53ace3a0]]
configuration 
32[[#53ace3a0]]