Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vidjil
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,688
Issues
1,688
List
Boards
Labels
Service Desk
Milestones
Merge Requests
84
Merge Requests
84
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vidjil
vidjil
Commits
300c92ce
Commit
300c92ce
authored
Jul 09, 2019
by
Thonier Florian
Committed by
Mikaël Salson
Jul 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test clone & model; add some test on null value for normalized_reads field
Link to
#3943
parent
9debc3fb
Pipeline
#87067
failed with stages
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
browser/test/QUnit/testFiles/clone_test.js
browser/test/QUnit/testFiles/clone_test.js
+1
-1
browser/test/QUnit/testFiles/model_test.js
browser/test/QUnit/testFiles/model_test.js
+6
-0
No files found.
browser/test/QUnit/testFiles/clone_test.js
View file @
300c92ce
...
...
@@ -119,7 +119,7 @@ var json_clone6 = {
"
id
"
:
"
id6
"
,
"
germline
"
:
"
TRG
"
,
"
reads
"
:
[
10
,
10
,
0
,
30
],
"
normalized_reads
"
:
[
20
,
20
,
0
,
30
],
"
normalized_reads
"
:
[
20
,
20
,
0
,
null
],
}
QUnit
.
test
(
"
name, informations, getHtmlInfo
"
,
function
(
assert
)
{
...
...
browser/test/QUnit/testFiles/model_test.js
View file @
300c92ce
...
...
@@ -423,6 +423,12 @@ QUnit.test("normalization", function(assert) {
m
.
initClones
()
assert
.
equal
(
m
.
have_external_normalization
,
false
,
"
Model have_external_normalization is correctly resetted
"
)
m
.
set_normalization
(
m
.
NORM_EXTERNAL
)
assert
.
equal
(
m
.
normalize_reads
(
c6
,
0
,
undefined
),
20
,
"
normalize_reads; get normalized value if present
"
)
assert
.
equal
(
m
.
normalize_reads
(
c6
,
0
,
false
),
10
,
"
normalize_reads; get raw value if specified
"
)
assert
.
equal
(
m
.
normalize_reads
(
c6
,
2
,
undefined
),
0
,
"
normalize_reads; get value at 0 as computed by external normalization
"
)
assert
.
equal
(
m
.
normalize_reads
(
c6
,
3
,
undefined
),
30
,
"
normalize_reads; get raw value if normalization equal null
"
)
})
QUnit
.
test
(
"
findGermlineFromGene
"
,
function
(
assert
)
{
...
...
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