stdlib-js / stats-ztest
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -55,7 +55,7 @@
Loading
55 55
* @param {number} [options.mu=0] - mean under H0
56 56
* @throws {TypeError} x argument has to be a typed array or array of numbers
57 57
* @throws {TypeError} sigma argument has to be a positive number
58 -
* @throws {TypeError} options has to be simple object
58 +
* @throws {TypeError} options must be an object
59 59
* @throws {TypeError} alpha option has to be a number
60 60
* @throws {RangeError} alpha option has to be a number in the interval `[0,1]`
61 61
* @throws {TypeError} alternative option has to be a string
@@ -111,7 +111,7 @@
Loading
111 111
		alpha = opts.alpha;
112 112
	}
113 113
	if ( alpha < 0.0 || alpha > 1.0 ) {
114 -
		throw new RangeError( format( 'invalid argument. `%s` option must be a number on the interval: [0, 1]. Value: `%f`.', 'alpha', alpha ) );
114 +
		throw new RangeError( format( 'invalid option. `%s` option must be a number on the interval: [0, 1]. Option: `%f`.', 'alpha', alpha ) );
115 115
	}
116 116
	if ( len < 2 ) {
117 117
		throw new Error( format( 'invalid argument. First argument must contain at least two elements. Value: `%s`.', x ) );
@@ -142,7 +142,7 @@
Loading
142 142
		cint[ 1 ] = mu + (cint[ 1 ] * stderr);
143 143
		break;
144 144
	default:
145 -
		throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
145 +
		throw new Error( format( 'invalid option. `%s` option must be one of the following: "%s". Option: `%s`.', 'alternative', [ 'two-sided', 'less', 'greater' ].join( '", "' ), alt ) );
146 146
	}
147 147
	out = {};
148 148
	setReadOnly( out, 'rejected', pval <= alpha );
Files Coverage
lib 100.00%
Project Totals (4 files) 100.00%
2285170791
unittests
2251823529
unittests
2361811511
unittests
2322946835
unittests
2438230156
unittests
2399756933
unittests
2519069750
unittests
2478592169
unittests
2559290532
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading