CloneSet318


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18210.997statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11820
src/NHibernate.Test/NHSpecificTest/NH1274ExportExclude/NH1274ExportExcludeFixture.cs
21744
src/NHibernate.Test/NHSpecificTest/NH1274ExportExclude/NH1274ExportExcludeFixture.cs
Clone Instance
1
Line Count
18
Source Line
20
Source File
src/NHibernate.Test/NHSpecificTest/NH1274ExportExclude/NH1274ExportExcludeFixture.cs

                        Configuration configuration = GetConfiguration();
                        SchemaExport export = new SchemaExport(configuration);
                        TextWriter tw = new StringWriter();
                        Console.SetOut(tw);
                        export.Drop(true, false);
                        string s = tw.ToString();

                        var dialect = Dialect.Dialect.GetDialect(configuration.Properties);

                        if (dialect.SupportsIfExistsBeforeTableName)
                        {
                                Assert.IsTrue(s.Contains("drop table if exists Home_Drop"));
                                Assert.IsTrue(s.Contains("drop table if exists Home_All"));
                        }
                        else
                        {
                                Assert.IsTrue(s.Contains("drop table Home_Drop"));
                                Assert.IsTrue(s.Contains("drop table Home_All"));
                        }


Clone Instance
2
Line Count
17
Source Line
44
Source File
src/NHibernate.Test/NHSpecificTest/NH1274ExportExclude/NH1274ExportExcludeFixture.cs

                        Configuration configuration = GetConfiguration();
                        SchemaExport export = new SchemaExport(configuration);
                        TextWriter tw = new StringWriter();
                        Console.SetOut(tw);
                        export.Create(true, false);
                        string s = tw.ToString();

                        var dialect = Dialect.Dialect.GetDialect(configuration.Properties);
                        if (dialect.SupportsIfExistsBeforeTableName)
                        {
                                Assert.IsTrue(s.Contains("drop table if exists Home_Drop"));
                                Assert.IsTrue(s.Contains("drop table if exists Home_All"));
                        }
                        else
                        {
                                Assert.IsTrue(s.Contains("drop table Home_Drop"));
                                Assert.IsTrue(s.Contains("drop table Home_All"));
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

Configuration configuration = GetConfiguration();
SchemaExport export = new SchemaExport(configuration);
TextWriter tw = new StringWriter();
Console.SetOut(tw);
export. [[#variable54137140]](true, false);
string s = tw.ToString();
var dialect = Dialect.Dialect.GetDialect(configuration.Properties);
if (dialect.SupportsIfExistsBeforeTableName)
{
   Assert.IsTrue(s.Contains("drop table if exists Home_Drop"));
   Assert.IsTrue(s.Contains("drop table if exists Home_All"));
}
else
{
   Assert.IsTrue(s.Contains("drop table Home_Drop"));
   Assert.IsTrue(s.Contains("drop table Home_All"));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54137140]]
Drop 
12[[#54137140]]
Create