CloneSet334


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17250.983class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11713
src/NHibernate.Test/MappingTest/TableFixture.cs
21732
src/NHibernate.Test/MappingTest/TableFixture.cs
Clone Instance
1
Line Count
17
Source Line
13
Source File
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));
                }



Clone Instance
2
Line Count
17
Source Line
32
Source File
src/NHibernate.Test/MappingTest/TableFixture.cs

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



Clone AbstractionParameter Count: 5Parameter Bindings

[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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6fcbb820]]
TableNameQuoted 
12[[#6fcbb820]]
TableNameNotQuoted 
21[[#6fcbb800]]
"`keyword`" 
22[[#6fcbb800]]
"notkeyword" 
31[[#6fcbb700]]
"[keyword]" 
32[[#6fcbb700]]
"notkeyword" 
41[[#54ac36c0]]
"dbo.[keyword]" 
42[[#54ac36c0]]
"dbo.notkeyword" 
51[[#6fcbb460]]
"sch.[keyword]" 
52[[#6fcbb460]]
"sch.notkeyword"