Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 5 | 0.983 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 13 | src/NHibernate.Test/MappingTest/TableFixture.cs |
2 | 17 | 32 | src/NHibernate.Test/MappingTest/TableFixture.cs |
| ||||
[Test] public void TableNameQuoted() { Table tbl = new Table(); tbl.Name = "`keyword`"; Dialect.Dialect dialect = new MsSql2000Dialect(); Assert.AreEqual("[keyword]", tbl.GetQuotedName(dialect)); Assert.AreEqual("dbo.[keyword]", tbl.GetQualifiedName(dialect, null, "dbo")); Assert.AreEqual("[keyword]", tbl.GetQualifiedName(dialect, null, null)); tbl.Schema = "sch"; Assert.AreEqual("sch.[keyword]", tbl.GetQualifiedName(dialect)); } |
| ||||
[Test] public void TableNameNotQuoted() { Table tbl = new Table(); tbl.Name = "notkeyword"; Dialect.Dialect dialect = new MsSql2000Dialect(); Assert.AreEqual("notkeyword", tbl.GetQuotedName(dialect)); Assert.AreEqual("dbo.notkeyword", tbl.GetQualifiedName(dialect, null, "dbo")); Assert.AreEqual("notkeyword", tbl.GetQualifiedName(dialect, null, null)); tbl.Schema = "sch"; Assert.AreEqual("sch.notkeyword", tbl.GetQualifiedName(dialect)); } |
| |||
[Test] public void [[#variable6fcbb820]]() { Table tbl = new Table(); tbl.Name = [[#variable6fcbb800]]; Dialect.Dialect dialect = new MsSql2000Dialect(); Assert.AreEqual( [[#variable6fcbb700]], tbl.GetQuotedName(dialect)); Assert.AreEqual( [[#variable54ac36c0]], tbl.GetQualifiedName(dialect, null, "dbo")); Assert.AreEqual( [[#variable6fcbb700]], tbl.GetQualifiedName(dialect, null, null)); tbl.Schema = "sch"; Assert.AreEqual( [[#variable6fcbb460]], tbl.GetQualifiedName(dialect)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6fcbb820]] | TableNameQuoted |
1 | 2 | [[#6fcbb820]] | TableNameNotQuoted |
2 | 1 | [[#6fcbb800]] | "`keyword`" |
2 | 2 | [[#6fcbb800]] | "notkeyword" |
3 | 1 | [[#6fcbb700]] | "[keyword]" |
3 | 2 | [[#6fcbb700]] | "notkeyword" |
4 | 1 | [[#54ac36c0]] | "dbo.[keyword]" |
4 | 2 | [[#54ac36c0]] | "dbo.notkeyword" |
5 | 1 | [[#6fcbb460]] | "sch.[keyword]" |
5 | 2 | [[#6fcbb460]] | "sch.notkeyword" |