Commit d5bd3b7
committed
Add comprehensive tests for intervalMs and parameter validation edge cases
- Added test coverage for previously untested intervalMs function (2 tests)
- Added parameter validation tests for take/skip with negative values (2 tests)
- Added boundary condition tests for take/skip with zero values (2 tests)
- Added exception propagation test for replicateInfinite (1 test)
- Total test count increased from 134 → 141 tests (+7 tests)
- All tests pass successfully
Coverage improvements achieved:
- Overall Line Coverage: 86.1% → 86.5% (+0.4%)
- Method Coverage: 88.0% → 88.8% (+0.8%)
- Branch Coverage: 71.0% → 72.6% (+1.6%)
- AsyncSeq module: 86.2% → 86.6% line coverage (+0.4%)
These tests cover important edge cases and error handling scenarios:
- intervalMs function timing behavior and zero period handling
- Proper ArgumentException throwing for negative take/skip counts
- Correct behavior for boundary values (zero take/skip)
- Exception propagation in infinite sequence generation
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent d8cbc9e commit d5bd3b7
1 file changed
Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1825 | 1825 | | |
1826 | 1826 | | |
1827 | 1827 | | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1828 | 1908 | | |
1829 | 1909 | | |
1830 | 1910 | | |
| |||
0 commit comments