Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
smradius
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smradius
smradius
Commits
08cd6b48
Commit
08cd6b48
authored
Sep 22, 2016
by
Nigel Kukard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: Improved timestampCheck to support a coderef check
parent
da8d8603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
t/200-dbtests.t
t/200-dbtests.t
+8
-1
No files found.
t/200-dbtests.t
View file @
08cd6b48
...
@@ -599,6 +599,8 @@ sub testDBResults
...
@@ -599,6 +599,8 @@ sub testDBResults
$table
$table
WHERE
WHERE
$whereLines_str
$whereLines_str
ORDER BY
ID DESC
",
@whereData
);
",
@whereData
);
# Make sure we got no error
# Make sure we got no error
...
@@ -610,7 +612,12 @@ sub testDBResults
...
@@ -610,7 +612,12 @@ sub testDBResults
# Loop through results and check if they match
# Loop through results and check if they match
foreach
my
$resultName
(
keys
%
{
$resultCheck
})
{
foreach
my
$resultName
(
keys
%
{
$resultCheck
})
{
is
(
$row
->
{
$resultName
},
$resultCheck
->
{
$resultName
},"
$name
:
$resultName
check
");
# Check if the result is a code-based subroutine
if
(
ref
(
my
$result
=
$resultCheck
->
{
$resultName
})
eq
"
CODE
")
{
is
(
$resultCheck
->
{
$resultName
}(
$row
->
{
$resultName
}),
1
,"
$name
:
$resultName
sub{} check
");
}
else
{
is
(
$row
->
{
$resultName
},
$resultCheck
->
{
$resultName
},"
$name
:
$resultName
check
");
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment