|
488 | 488 | A good unit test for a function should cover all branches of the control flow inside the function. %
|
489 | 489 | If a function does one thing in one situation and another thing in another situation, then both of these scenarios should have associated unit tests.%
|
490 | 490 | }%
|
| 491 | +% |
| 492 | +Many junior programmers are not aware how important unit testing is. |
| 493 | +Being able to understand, design, and use unit tests is one of the most important abilities in software development.% |
| 494 | +% |
| 495 | +\cquotation{GPBHKP2022SPPAF}{ |
| 496 | +No single factor is likely responsible for \sqlite's popularity. |
| 497 | +Instead, in addition to its fundamentally embeddable design, several characteristics combine to make \sqlite\ useful in a broad range of scenarios. |
| 498 | +In particular, \sqlite\ strives to be:\par\relax[\dots]\par\relax% |
| 499 | +\textbf{Reliable}. |
| 500 | +There are over 600~lines of test code for every line of code in \sqlite~\cite{HO2023WKUOS}. |
| 501 | +Tests cover 100\% of branches in the library. |
| 502 | +The test suite is extremely diverse, including fuzz tests, boundary value tests, regression tests, and tests that simulate operating system crashes, power losses, I/O~errors, and out-of-memory errors. |
| 503 | +Due to its reliability, \sqlite\ is often used in mission-critical applications such as flight software~\cite{HO2024HSIT}% |
| 504 | +}% |
| 505 | +% |
| 506 | +\sqlite\ is the most used \pgls{SQL} \pgls{db} in the world. |
| 507 | +It is installed in nearly every smartphone, computer, web browser, television, and automobile~\cite{WB2019RHSOOS,GPBHKP2022SPPAF,C20245YOQ}. |
| 508 | +And its core developers mark reliability, shown by thorough tests, as one of the four reasons for that.% |
| 509 | +% |
491 | 510 | \endhsection%
|
492 | 511 | %
|
493 | 512 | \hsection{Function Arguments: Default Values, Passing them by Name, and Constructing them}%
|
|
0 commit comments