From 8cf17b401dc3414a95054f55829cb2e519ed5ec2 Mon Sep 17 00:00:00 2001 From: Javier <10879637+javiertuya@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:41:50 +0200 Subject: [PATCH] Review style of class html reports --- .../Giis.Qacover.Report/BaseHtmlWriter.cs | 44 ++ .../Giis.Qacover.Report/ClassHtmlWriter.cs | 123 ++-- .../Giis.Qacover.Report/IndextHtmlWriter.cs | 28 +- .../Giis.Qacover.Report/ReportManager.cs | 50 +- .../Giis.Qacover.Report/SharedHtmlWriter.cs | 41 -- net/resources/qacover-report/index.html | 95 +-- .../test4giis.qacoverapp.AppSimpleJdbc.html | 593 +++++++++++++----- .../test4giis.qacoverapp.AppSimpleJdbc2.html | 257 ++++++-- ...4giis.qacoverapp.AppSimpleJdbc3Errors.html | 388 +++++++++--- .../test/resources/qacover-report/index.html | 95 +-- .../test4giis.qacoverapp.AppSimpleJdbc.html | 593 +++++++++++++----- .../test4giis.qacoverapp.AppSimpleJdbc2.html | 257 ++++++-- ...4giis.qacoverapp.AppSimpleJdbc3Errors.html | 378 ++++++++--- .../giis/qacover/report/BaseHtmlWriter.java | 50 ++ .../giis/qacover/report/ClassHtmlWriter.java | 258 +++++--- .../giis/qacover/report/IndextHtmlWriter.java | 58 +- .../giis/qacover/report/ReportManager.java | 54 +- .../giis/qacover/report/SharedHtmlWriter.java | 50 -- 18 files changed, 2381 insertions(+), 1031 deletions(-) create mode 100644 net/QACover/Translated/Giis.Qacover.Report/BaseHtmlWriter.cs delete mode 100644 net/QACover/Translated/Giis.Qacover.Report/SharedHtmlWriter.cs create mode 100644 qacover-model/src/main/java/giis/qacover/report/BaseHtmlWriter.java delete mode 100644 qacover-model/src/main/java/giis/qacover/report/SharedHtmlWriter.java diff --git a/net/QACover/Translated/Giis.Qacover.Report/BaseHtmlWriter.cs b/net/QACover/Translated/Giis.Qacover.Report/BaseHtmlWriter.cs new file mode 100644 index 0000000..6a5858c --- /dev/null +++ b/net/QACover/Translated/Giis.Qacover.Report/BaseHtmlWriter.cs @@ -0,0 +1,44 @@ +///////////////////////////////////////////////////////////////////////////////////////////// +/////// THIS FILE HAS BEEN AUTOMATICALLY CONVERTED FROM THE JAVA SOURCES. DO NOT EDIT /////// +///////////////////////////////////////////////////////////////////////////////////////////// +using Giis.Portable.Xml.Tiny; +using Giis.Qacover.Model; + + +namespace Giis.Qacover.Report +{ + public abstract class BaseHtmlWriter + { + protected internal virtual string GetHeader(string title) + { + return "\n" + "\n" + "
\n" + "Line | Coverage | Source code/method, queries and rules | \n" + content + "\n" + "
---|
$sourceCode$
\n" + " " + methodIdentifier + "" + "\n " - + SharedHtmlWriter.Percent(rules.GetCount(), rules.GetDead()) + " (" + rules.GetDead() + "/" + rules.GetCount() + ")" + " " + rules.GetQrun() + " run(s)" + (rules.GetError() > 0 ? " " + rules.GetError() + " rule(s) with error" : string.Empty - ) + "\n | " + "\n" + GetSqlToHtml(XNodeAbstract.EncodeText(sql)) + GetErrorsHtml(rules) + "\n | " + "\n
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
\n" + " | \n" + " ▼▲\n" + " $runCount$ run(s)\n" + + " ▷◁\n" + " | \n" + "\n" + " (run params not available) \n" + " $sqlQuery$ $errorsQuery$"
+ + " | \n" + " ||||
$id | $dead | $count | " + "\n$category | $type | $subtype | $location | " + " " + " " + "$description " + "$sql$error "
- + " | ";
- return template.Replace("$id", rule.GetId()).Replace("$count", rule.GetCount().ToString()).Replace("$dead", rule.GetDead().ToString()).Replace("$category", rule.GetCategory()).Replace("$subtype", rule.GetSubtype()).Replace("$type", rule.GetMainType()).Replace("$location", rule.GetLocation
- ()).Replace("$description", XNodeAbstract.EncodeText(rule.GetDescription()).Replace("\n", HtmlNewline)).Replace("$sql", GetSqlToHtml(rule.GetSql())).Replace("$error", GetErrorsHtml(rule)).Replace("$style", covered ? Bgcolor("palegreen") : Bgcolor("lightyellow"));
+ return " \n" + rulesContent + "
\n" + " | $ruleId$ - dead: $ruleDead$ count: $ruleCount$ | \n" + "\n" + " category: $ruleCategory$ type: $ruleType$ subtype: $ruleSubtype$ location: $ruleLocation$\n"
+ + " (run params not available) \n" + " | \n" + " ||||
\n" + " | $ruleDescription$ | \n" + "$ruleSql$ | \n" + + "||||
" + "Rule error: " + errors.Replace("\n", "\n ") + " |
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
$classLink | " + "\n$percent | " + "\n" + "\n"
- + "\n | " + "\n$qrun | $qcount | $qerror | $dead | $count | $error |
Class | % | qrun | qcount | qerror | dead | count | error |
---|
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
TOTAL | -38% | -
-
- |
-20 | 12 | 1 | 12 | 31 | 2 |
Test4giis.Qacoverapp.AppSimpleJdbc | -41% | -
-
- |
-11 | 6 | 0 | 7 | 17 | 0 |
Test4giis.Qacoverapp.AppSimpleJdbc2 | -66% | -
-
- |
-4 | 2 | 0 | 4 | 6 | 0 |
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
TOTAL | +38% | +
+
+ |
+ 20 | 12 | 1 | 12 | 31 | 2 | +
Test4giis.Qacoverapp.AppSimpleJdbc | +41% | +
+
+ |
+ 11 | 6 | 0 | 7 | 17 | 0 | +
Test4giis.Qacoverapp.AppSimpleJdbc2 | +66% | +
+
+ |
+ 4 | 2 | 0 | 4 | 6 | 0 | +
Test4giis.Qacoverapp.AppSimpleJdbc3Errors | +12% | +
+
+ |
+ 5 | 4 | 1 | 1 | 8 | 2 | +
QueryDifferentSingleLine:51
- 50% (1/2) 2 run(s) - |
-SELECT * FROM test WHERE num = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 2 | -S | T | FF | 1.w.1.[WHERE num = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num = ?1? is FALSE SELECT * FROM test WHERE NOT(num = ?1?) |
-
2 | 2 | 2 | -S | T | TF | 1.w.1.[WHERE num = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num = ?1? is TRUE SELECT * FROM test WHERE (num = ?1?) |
-
QueryDifferentSingleLine:56
- 33% (1/3) 1 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 1 | 1 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 1 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
Line | Coverage | Source code/method, queries and rules | +||||||
---|---|---|---|---|---|---|---|---|
51 | +50% (1/2) | +
+ QueryDifferentSingleLine
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 2 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT * FROM test WHERE num = ?1? |
+ ||||||
+ | 1 - dead: 0 count: 2 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num = ?1?]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num = ?1? is FALSE |
+ SELECT * FROM test WHERE NOT(num = ?1?) |
+ ||||||
+ | 2 - dead: 2 count: 2 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num = ?1?]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num = ?1? is TRUE |
+ SELECT * FROM test WHERE (num = ?1?) |
+ ||||||
QueryEqualDifferentLine:72
- 33% (1/3) 2 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 2 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 2 | 2 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 2 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
(source code not available) (source code not available) (source code not available)
+ QueryEqualDifferentLine:75
- 33% (1/3) 2 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 2 | 2 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 0 | 2 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 2 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
(source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ QueryNoParameters1Condition:29
- 50% (1/2) 1 run(s) - |
-SELECT id , num , text FROM test WHERE num >= ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | FF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
-
2 | 1 | 1 | -S | T | TF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE SELECT id , num , text FROM test WHERE (num >= ?1?) |
-
QueryNoParameters2Condition:35
- 50% (2/4) 3 run(s) - |
-SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 1 | 3 | -S | T | TT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
-
2 | 0 | 3 | -S | T | FT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
-
3 | 2 | 3 | -S | T | FT | 1.w.2.[text = ?2?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
-
4 | 0 | 3 | -S | N | NT | 1.w.2.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
-
QueryNoParameters1Condition:22
- 50% (1/2) 3 run(s) - |
-SELECT id , num , text FROM test WHERE num >= ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 3 | -S | T | FF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
-
2 | 3 | 3 | -S | T | TF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE SELECT id , num , text FROM test WHERE (num >= ?1?) |
-
QueryNoParameters2Condition:28
- 75% (3/4) 1 run(s) - |
-SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? - |
-
Line | Coverage | Source code/method, queries and rules | +|
---|---|---|---|
22 | +50% (1/2) | +
+ QueryNoParameters1Condition
+ (source code not available) (source code not available) (source code not available)
+ |
+ |
+ | + ▼▲ + 3 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT id , num , text FROM test WHERE num >= ?1? |
+ |
+ | 1 - dead: 0 count: 3 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num >= ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE |
+ SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
+ |
+ | 2 - dead: 3 count: 3 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num >= ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE (num >= ?1?) |
+ |
28 | +75% (3/4) | +
+ QueryNoParameters2Condition
+ (source code not available) (source code not available) (source code not available)
+ |
+ |
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? |
+ |
+ | 1 - dead: 0 count: 1 | +
+ category: S type: T subtype: TT location: 1.w.1.[num > ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE |
+ SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
+ |
+ | 2 - dead: 1 count: 1 | +
+ category: S type: T subtype: FT location: 1.w.1.[num > ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE |
+ SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
+ |
+ | 3 - dead: 1 count: 1 | +
+ category: S type: T subtype: FT location: 1.w.2.[text = ?2?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
+ |
+ | 4 - dead: 1 count: 1 | +
+ category: S type: N subtype: NT location: 1.w.2.[text]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
+ |
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | TT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
-
2 | 1 | 1 | -S | T | FT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
-
3 | 1 | 1 | -S | T | FT | 1.w.2.[text = ?2?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
-
4 | 1 | 1 | -S | N | NT | 1.w.2.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
-
Query0Errors:22
- 50% (1/2) 1 run(s) - |
-select id,num,text from test where num<9 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 1 | 1 | -S | T | FF | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num < 9 is FALSE SELECT id , num , text FROM test WHERE NOT(num < 9) |
-
2 | 0 | 1 | -S | T | TF | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num < 9 is TRUE SELECT id , num , text FROM test WHERE (num < 9) |
-
Query1ErrorAtQuery:28
- (0/0) 0 run(s) - |
-select id,num,text from test where num<10 Error at Get query table names: Giis.Tdrules.Openapi.Client.ApiException: Error calling QueryEntitiesPost: 404 Not FoundCode 404 - |
-
ID | dead | count | category | type | subtype | location |
---|
Line | Coverage | Source code/method, queries and rules | +||||||
---|---|---|---|---|---|---|---|---|
22 | +50% (1/2) | +
+ Query0Errors
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<9 |
+ ||||||
+ | 1 - dead: 1 count: 1 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num < 9 is FALSE |
+ SELECT id , num , text FROM test WHERE NOT(num < 9) |
+ ||||||
+ | 2 - dead: 0 count: 1 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num < 9 is TRUE |
+ SELECT id , num , text FROM test WHERE (num < 9) |
+ ||||||
28 | +(0/0) | +
+ Query1ErrorAtQuery
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 0 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<10
+Query error: Error at Get query table names: Giis.Tdrules.Openapi.Client.ApiException: Error calling QueryEntitiesPost: <html> +<head><title>404 Not Found</title></head> +<body> +<center><h1>404 Not Found</h1></center> +<hr><center>nginx</center> +</body> +</html> + Code 404 + |
+ ||||||
34 | +0% (0/3) | +
+ Query1ErrorAtRule
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num < 11
+1 rule(s) with error + |
+ ||||||
+ | 1 - dead: 0 count: 1 | +
+ category: S type: B subtype: B+F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 12 |
+ selectar id,num,text from test where num < 9 | +||||||
Rule error: Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error
+ near "selectar": syntax error | ||||||||
+ | 2 - dead: 0 count: 1 | +
+ category: S type: B subtype: B=F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 11 |
+ SELECT id , num , text FROM test WHERE (num = 11) |
+ ||||||
+ | 3 - dead: 0 count: 1 | +
+ category: S type: B subtype: B-F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 10 |
+ SELECT id , num , text FROM test WHERE (num = 10) |
+ ||||||
40 | +0% (0/3) | +
+ QueryMultipleErrors
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 3 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<9
+1 rule(s) with error + |
+ ||||||
+ | 1 - dead: 0 count: 3 | +
+ category: S type: B subtype: B+F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 10 |
+ select id,num,text from notable where num < 9 | +||||||
Rule error: Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error
+ near "selectar": syntax error + Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error + no such table: notable | ||||||||
+ | 2 - dead: 0 count: 3 | +
+ category: S type: B subtype: B=F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 9 |
+ SELECT id , num , text FROM test WHERE (num = 9) |
+ ||||||
+ | 3 - dead: 0 count: 3 | +
+ category: S type: B subtype: B-F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 8 |
+ SELECT id , num , text FROM test WHERE (num = 8) |
+ ||||||
Query1ErrorAtRule:34
- 0% (0/3) 1 run(s) 1 rule(s) with error - |
-select id,num,text from test where num < 11 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | B | B+F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 12 selectar id,num,text from test where num < 9 Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error near "selectar": syntax error |
-
2 | 0 | 1 | -S | B | B=F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 11 SELECT id , num , text FROM test WHERE (num = 11) |
-
3 | 0 | 1 | -S | B | B-F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 10 SELECT id , num , text FROM test WHERE (num = 10) |
-
QueryMultipleErrors:40
- 0% (0/3) 3 run(s) 1 rule(s) with error - |
-select id,num,text from test where num<9 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 3 | -S | B | B+F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 10 select id,num,text from notable where num < 9 Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error near "selectar": syntax error Giis.Qacover.Portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: System.Data.SQLite.SQLiteException: SQL logic error no such table: notable |
-
2 | 0 | 3 | -S | B | B=F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 9 SELECT id , num , text FROM test WHERE (num = 9) |
-
3 | 0 | 3 | -S | B | B-F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 8 SELECT id , num , text FROM test WHERE (num = 8) |
-
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
TOTAL | -38% | -
-
- |
-20 | 12 | 1 | 12 | 31 | 2 |
test4giis.qacoverapp.AppSimpleJdbc | -41% | -
-
- |
-11 | 6 | 0 | 7 | 17 | 0 |
test4giis.qacoverapp.AppSimpleJdbc2 | -66% | -
-
- |
-4 | 2 | 0 | 4 | 6 | 0 |
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
TOTAL | +38% | +
+
+ |
+ 20 | 12 | 1 | 12 | 31 | 2 | +
test4giis.qacoverapp.AppSimpleJdbc | +41% | +
+
+ |
+ 11 | 6 | 0 | 7 | 17 | 0 | +
test4giis.qacoverapp.AppSimpleJdbc2 | +66% | +
+
+ |
+ 4 | 2 | 0 | 4 | 6 | 0 | +
test4giis.qacoverapp.AppSimpleJdbc3Errors | +12% | +
+
+ |
+ 5 | 4 | 1 | 1 | 8 | 2 | +
queryDifferentSingleLine:35
- 50% (1/2) 2 run(s) - |
-SELECT * FROM test WHERE num = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 2 | -S | T | FF | 1.w.1.[WHERE num = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num = ?1? is FALSE SELECT * FROM test WHERE NOT(num = ?1?) |
-
2 | 2 | 2 | -S | T | TF | 1.w.1.[WHERE num = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num = ?1? is TRUE SELECT * FROM test WHERE (num = ?1?) |
-
queryDifferentSingleLine:35
- 33% (1/3) 1 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 1 | 1 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 1 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
Line | Coverage | Source code/method, queries and rules | +||||||
---|---|---|---|---|---|---|---|---|
35 | +50% (1/2) | +
+ queryDifferentSingleLine
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 2 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT * FROM test WHERE num = ?1? |
+ ||||||
+ | 1 - dead: 0 count: 2 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num = ?1?]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num = ?1? is FALSE |
+ SELECT * FROM test WHERE NOT(num = ?1?) |
+ ||||||
+ | 2 - dead: 2 count: 2 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num = ?1?]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num = ?1? is TRUE |
+ SELECT * FROM test WHERE (num = ?1?) |
+ ||||||
queryEqualDifferentLine:41
- 33% (1/3) 2 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 2 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 2 | 2 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 2 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
(source code not available) (source code not available) (source code not available)
+ queryEqualDifferentLine:44
- 33% (1/3) 2 run(s) - |
-SELECT * FROM test WHERE text = ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 2 | 2 | -S | T | FF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?1? is FALSE SELECT * FROM test WHERE NOT(text = ?1?) |
-
2 | 0 | 2 | -S | T | TF | 1.w.1.[WHERE text = ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) text = ?1? is TRUE SELECT * FROM test WHERE (text = ?1?) |
-
3 | 0 | 2 | -S | N | NF | 1.w.1.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL SELECT * FROM test WHERE (text IS NULL) |
-
(source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ (source code not available) (source code not available) (source code not available)
+ queryNoParameters1Condition:23
- 50% (1/2) 1 run(s) - |
-SELECT id , num , text FROM test WHERE num >= ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | FF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
-
2 | 1 | 1 | -S | T | TF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE SELECT id , num , text FROM test WHERE (num >= ?1?) |
-
queryNoParameters2Condition:26
- 50% (2/4) 3 run(s) - |
-SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 1 | 3 | -S | T | TT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
-
2 | 0 | 3 | -S | T | FT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
-
3 | 2 | 3 | -S | T | FT | 1.w.2.[text = ?2?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
-
4 | 0 | 3 | -S | N | NT | 1.w.2.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
-
queryNoParameters1Condition:14
- 50% (1/2) 3 run(s) - |
-SELECT id , num , text FROM test WHERE num >= ?1? - |
-
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 3 | -S | T | FF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
-
2 | 3 | 3 | -S | T | TF | 1.w.1.[WHERE num >= ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE SELECT id , num , text FROM test WHERE (num >= ?1?) |
-
queryNoParameters2Condition:17
- 75% (3/4) 1 run(s) - |
-SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? - |
-
Line | Coverage | Source code/method, queries and rules | +|
---|---|---|---|
14 | +50% (1/2) | +
+ queryNoParameters1Condition
+ (source code not available) (source code not available) (source code not available)
+ |
+ |
+ | + ▼▲ + 3 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT id , num , text FROM test WHERE num >= ?1? |
+ |
+ | 1 - dead: 0 count: 3 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num >= ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num >= ?1? is FALSE |
+ SELECT id , num , text FROM test WHERE NOT(num >= ?1?) |
+ |
+ | 2 - dead: 3 count: 3 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num >= ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num >= ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE (num >= ?1?) |
+ |
17 | +75% (3/4) | +
+ queryNoParameters2Condition
+ (source code not available) (source code not available) (source code not available)
+ |
+ |
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ SELECT id , num , text FROM test WHERE num > ?1? AND text = ?2? |
+ |
+ | 1 - dead: 0 count: 1 | +
+ category: S type: T subtype: TT location: 1.w.1.[num > ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE |
+ SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
+ |
+ | 2 - dead: 1 count: 1 | +
+ category: S type: T subtype: FT location: 1.w.1.[num > ?1?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE |
+ SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
+ |
+ | 3 - dead: 1 count: 1 | +
+ category: S type: T subtype: FT location: 1.w.2.[text = ?2?]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
+ |
+ | 4 - dead: 1 count: 1 | +
+ category: S type: N subtype: NT location: 1.w.2.[text]
+ (run params not available)
+ |
+ |
+ | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE |
+ SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
+ |
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | T | TT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num > ?1? is TRUE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE (num > ?1?) AND (text = ?2?) |
-
2 | 1 | 1 | -S | T | FT | 1.w.1.[num > ?1?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num > ?1? is FALSE --(T) text = ?2? is TRUE SELECT id , num , text FROM test WHERE NOT(num > ?1?) AND (text = ?2?) |
-
3 | 1 | 1 | -S | T | FT | 1.w.2.[text = ?2?] | --Some row in the table such that: --The WHERE condition fulfills: --(F) text = ?2? is FALSE --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE NOT(text = ?2?) AND (num > ?1?) |
-
4 | 1 | 1 | -S | N | NT | 1.w.2.[text] | --Some row in the table such that: --The WHERE condition fulfills: --(N) text is NULL --(T) num > ?1? is TRUE SELECT id , num , text FROM test WHERE (text IS NULL) AND (num > ?1?) |
-
query0Errors:14
- 50% (1/2) 1 run(s) - |
-select id,num,text from test where num<9 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 1 | 1 | -S | T | FF | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(F) num < 9 is FALSE SELECT id , num , text FROM test WHERE NOT(num < 9) |
-
2 | 0 | 1 | -S | T | TF | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(T) num < 9 is TRUE SELECT id , num , text FROM test WHERE (num < 9) |
-
query1ErrorAtQuery:17
- (0/0) 0 run(s) - |
-select id,num,text from test where num<10 Error at Get query table names: ApiException{code=0, responseHeaders=null, responseBody='null'} - |
-
ID | dead | count | category | type | subtype | location |
---|
Line | Coverage | Source code/method, queries and rules | +||||||
---|---|---|---|---|---|---|---|---|
14 | +50% (1/2) | +
+ query0Errors
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<9 |
+ ||||||
+ | 1 - dead: 1 count: 1 | +
+ category: S type: T subtype: FF location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(F) num < 9 is FALSE |
+ SELECT id , num , text FROM test WHERE NOT(num < 9) |
+ ||||||
+ | 2 - dead: 0 count: 1 | +
+ category: S type: T subtype: TF location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(T) num < 9 is TRUE |
+ SELECT id , num , text FROM test WHERE (num < 9) |
+ ||||||
17 | +(0/0) | +
+ query1ErrorAtQuery
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 0 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<10
+Query error: Error at Get query table names: ApiException{code=0, responseHeaders=null, responseBody='null'} + |
+ ||||||
20 | +0% (0/3) | +
+ query1ErrorAtRule
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 1 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num < 11
+1 rule(s) with error + |
+ ||||||
+ | 1 - dead: 0 count: 1 | +
+ category: S type: B subtype: B+F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 12 |
+ selectar id,num,text from test where num < 9 | +||||||
Rule error: giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near "selectar": syntax error) | ||||||||
+ | 2 - dead: 0 count: 1 | +
+ category: S type: B subtype: B=F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 11 |
+ SELECT id , num , text FROM test WHERE (num = 11) |
+ ||||||
+ | 3 - dead: 0 count: 1 | +
+ category: S type: B subtype: B-F location: 1.w.1.[WHERE num < 11]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 10 |
+ SELECT id , num , text FROM test WHERE (num = 10) |
+ ||||||
23 | +0% (0/3) | +
+ queryMultipleErrors
+ (source code not available) (source code not available) (source code not available)
+ |
+ ||||||
+ | + ▼▲ + 3 run(s) + ▷◁ + | +
+ (run params not available)
+ select id,num,text from test where num<9
+1 rule(s) with error + |
+ ||||||
+ | 1 - dead: 0 count: 3 | +
+ category: S type: B subtype: B+F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 10 |
+ select id,num,text from notable where num < 9 | +||||||
Rule error: giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near "selectar": syntax error)
+ giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: notable) | ||||||||
+ | 2 - dead: 0 count: 3 | +
+ category: S type: B subtype: B=F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 9 |
+ SELECT id , num , text FROM test WHERE (num = 9) |
+ ||||||
+ | 3 - dead: 0 count: 3 | +
+ category: S type: B subtype: B-F location: 1.w.1.[WHERE num < 9]
+ (run params not available)
+ |
+ ||||||
+ | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 8 |
+ SELECT id , num , text FROM test WHERE (num = 8) |
+ ||||||
query1ErrorAtRule:20
- 0% (0/3) 1 run(s) 1 rule(s) with error - |
-select id,num,text from test where num < 11 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 1 | -S | B | B+F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 12 selectar id,num,text from test where num < 9 giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near "selectar": syntax error) |
-
2 | 0 | 1 | -S | B | B=F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 11 SELECT id , num , text FROM test WHERE (num = 11) |
-
3 | 0 | 1 | -S | B | B-F | 1.w.1.[WHERE num < 11] | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 10 SELECT id , num , text FROM test WHERE (num = 10) |
-
queryMultipleErrors:23
- 0% (0/3) 3 run(s) 1 rule(s) with error - |
-select id,num,text from test where num<9 - | -
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
1 | 0 | 3 | -S | B | B+F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B+) num = 10 select id,num,text from notable where num < 9 giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (near "selectar": syntax error) giis.qacover.portable.QaCoverException: SpyStatementAdapter.hasRows. Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: notable) |
-
2 | 0 | 3 | -S | B | B=F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B=) num = 9 SELECT id , num , text FROM test WHERE (num = 9) |
-
3 | 0 | 3 | -S | B | B-F | 1.w.1.[WHERE num < 9] | --Some row in the table such that: --The WHERE condition fulfills: --(B-) num = 8 SELECT id , num , text FROM test WHERE (num = 8) |
-
Line | Coverage | Source code/method, queries and rules | \n" + + content + "\n" + + "
---|
" + methodIdentifier + ""
- + "\n " + SharedHtmlWriter.percent(rules.getCount(),rules.getDead()) + " (" + rules.getDead()+"/" + rules.getCount() + ")" - + " " + rules.getQrun()+" run(s)" - + (rules.getError() > 0 ? " " + rules.getError()+" rule(s) with error" : "") - + "\n | "
- + "\n" + getSqlToHtml(XNodeAbstract.encodeText(sql)) - + getErrorsHtml(rules) - + "\n | " - + "\n
ID | dead | count | category | type | subtype | location |
---|---|---|---|---|---|---|
$lineNumber$ | \n" + + "$percentCoverage$ ($deadCount$/$runCount$) | \n" + + "\n"
+ + " $methodName$\n"
+ + " $sourceCode$ \n"
+ + " | \n"
+ + " ||||
$id | $dead | $count | " - + "\n$category | $type | $subtype | $location | "
- + " "
- + " "
- + "$description "
- + "$sql$error "
- + " | ";
- return template
- .replace("$id", rule.getId())
- .replace("$count", String.valueOf(rule.getCount()))
- .replace("$dead", String.valueOf(rule.getDead()))
- .replace("$category", rule.getCategory())
- .replace("$subtype", rule.getSubtype())
- .replace("$type", rule.getMainType())
- .replace("$location", rule.getLocation())
- .replace("$description", XNodeAbstract.encodeText(rule.getDescription()).replace("\n",HTML_NEWLINE))
- .replace("$sql", getSqlToHtml(rule.getSql()))
- .replace("$error", getErrorsHtml(rule))
- .replace("$style", covered ? bgcolor("palegreen") : bgcolor("lightyellow"));
+ public String getQueryContent(QueryReader query) {
+ String template=" \n"
+ + "
\n" + + " | \n" + + " ▼▲\n" + + " $runCount$ run(s)\n" + + " ▷◁\n" + + " | \n" + + "\n"
+ + " (run params not available) \n"
+ + " $sqlQuery$ $errorsQuery$"
+ + " | \n"
+ + " ||||
\n" + + " | $ruleId$ - dead: $ruleDead$ count: $ruleCount$ | \n" + + "\n"
+ + " category: $ruleCategory$ type: $ruleType$ subtype: $ruleSubtype$ location: $ruleLocation$\n"
+ + " (run params not available) \n"
+ + " | \n"
+ + " ||||
\n" + + " | $ruleDescription$ | \n" + + "$ruleSql$ | \n" + + "
Class | % | qrun | qcount | qerror | dead | count | error | |
---|---|---|---|---|---|---|---|---|
$classLink | " - + "\n$percent | " - + "\n"
- + "\n"
- + "\n | "
- + "\n$qrun | $qcount | $qerror | $dead | $count | $error |
Class | % | qrun | qcount | qerror | dead | count | error |
---|