Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 1 | 0.997 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 20 | src/NHibernate.Test/NHSpecificTest/NH1274ExportExclude/NH1274ExportExcludeFixture.cs |
2 | 17 | 44 | 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")); } |
| ||||
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")); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54137140]] | Drop |
1 | 2 | [[#54137140]] | Create |