Grokking Advanced Go
Vote

0% completed

​

Capstone: Tests and Fuzzing

Here are some numbers from the order service at the end of its first test pass. The handler table had 18 rows, every test passed under the race detector, and coverage was 94.7 percent of statements. Here are some others. An int64 holds at most 9,223,372,036,854,775,807. An order with a quantity of 7,000 at 2,000,000,000,000,000 cents per unit costs 14,000,000,000,000,000,000 cents. Validate accepted that order. The program below runs the multiplication from Total on that order and on a second one:

Output:

largest int64: 9223372036854775807

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content