Clarify tests
parent
6c9b19b90d
commit
777d8a0acd
|
@ -1,5 +1,6 @@
|
|||
[ignore]
|
||||
.*/node_modules/.*
|
||||
.*/coverage/.*
|
||||
.*/tests/samples/.*
|
||||
.*/lib/.*
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ import type {
|
|||
} from './schema';
|
||||
|
||||
import {isPrimitiveType, isComplexType, makeFullname, mergeTypes} from './schema';
|
||||
import {invariant, compose, last, get, negate, partition, map, filter, filterMap, compact} from './utils';
|
||||
import {invariant, compose, last, get, partition, map, filter, filterMap, compact} from './utils';
|
||||
|
||||
function processTypeAlias(ctx: Context, node: TypeAlias) {
|
||||
let type = makeType(ctx, node.right);
|
||||
|
|
|
@ -61,10 +61,6 @@ export function get<T: Object, K: $Keys<T>>(key: K): T => $ElementType<T, K> {
|
|||
return obj => obj[key];
|
||||
}
|
||||
|
||||
export function negate<T>(pred: T => boolean): T => boolean {
|
||||
return flag => !flag;
|
||||
}
|
||||
|
||||
export function compose<X, Y, Z>(a: X => Y, b: Y => Z): X => Z {
|
||||
return x => b(a(x));
|
||||
}
|
||||
|
|
|
@ -27,6 +27,5 @@
|
|||
"type": {"type": "array", "items": "double"}
|
||||
}]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -17,6 +17,5 @@
|
|||
"namespace": "disorder",
|
||||
"fields": [{"name": "y", "type": "Y"}]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
"schemas": [],
|
||||
"taskCount": 2
|
||||
"schemas": []
|
||||
}
|
||||
|
|
|
@ -27,6 +27,5 @@
|
|||
"type": {"type": "enum", "symbols": ["one", "two"]}
|
||||
}]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -70,6 +70,5 @@
|
|||
{"name": "p", "type": "externals.second.P"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 17
|
||||
]
|
||||
}
|
||||
|
|
|
@ -15,6 +15,5 @@
|
|||
"namespace": "generics",
|
||||
"fields": [{"name": "a", "type": "A__string_double"}]
|
||||
}
|
||||
],
|
||||
"taskCount": 4
|
||||
]
|
||||
}
|
||||
|
|
|
@ -50,6 +50,5 @@
|
|||
{"name": "z", "type": "boolean"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 8
|
||||
]
|
||||
}
|
||||
|
|
|
@ -62,6 +62,5 @@
|
|||
{"name": "z", "type": "_A_C"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 8
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
"namespace": "maps",
|
||||
"values": "double"
|
||||
}
|
||||
],
|
||||
"taskCount": 4
|
||||
]
|
||||
}
|
||||
|
|
|
@ -36,6 +36,5 @@
|
|||
{"name": "e", "type": {"type": "fixed", "size": 10}}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -36,6 +36,5 @@
|
|||
{"name": "e", "type": "bytes"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -32,6 +32,5 @@
|
|||
{"name": "b", "type": {"type": "array", "items": "A"}}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 6
|
||||
]
|
||||
}
|
||||
|
|
|
@ -69,6 +69,5 @@
|
|||
"namespace": "scopes",
|
||||
"fields": [{"name": "x", "type": "X"}]
|
||||
}
|
||||
],
|
||||
"taskCount": 17
|
||||
]
|
||||
}
|
||||
|
|
|
@ -22,6 +22,5 @@
|
|||
{"name": "x", "type": "bytes"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 6
|
||||
]
|
||||
}
|
||||
|
|
|
@ -27,6 +27,5 @@
|
|||
{"name": "b", "type": "double"}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 8
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,6 +12,5 @@
|
|||
"namespace": "typeInMethod._1",
|
||||
"fields": [{"name": "t", "type": "typeInMethod.Test"}]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -45,6 +45,5 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -36,6 +36,5 @@
|
|||
]
|
||||
}]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{
|
||||
"schemas": [],
|
||||
"taskCount": 2
|
||||
"schemas": []
|
||||
}
|
||||
|
|
|
@ -24,6 +24,5 @@
|
|||
{"name": "a", "type": {"type": "enum", "symbols": ["one"]}}
|
||||
]
|
||||
}
|
||||
],
|
||||
"taskCount": 5
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue