Test with Go – Jon Calhoun


Test with Go – Jon Calhoun
English | Size: 43.62 GB
Genre: eLearning

Learn how to test real, complex software written in Go
Large or small, perfect abstractions or global state galore; it doesn’t matter what your code looks like, you CAN learn to test it.
Tell me if this sounds familiar – you are learning how to test in Go, and things seem to be going great. The tutorials are all clicking, and you can’t wait to start applying what you are learning in your real projects.

You fire up your editor, grab your latest project, create your first *_test.go source file, and suddenly it feels like you don’t have a clue what you are doing.

*You hear the sound of glass shattering*

What happened?!?!
Things were going so great. All those examples made sense, but now you don’t even know where to start.

It seemed so easy to test that “Hello, world” HTTP handler, but how do you test complex handlers? You know, HTTP handlers that do something realistic like insert a record into a database, or use an API to verify someone’s address.

For that matter, how do we verify that our database interactions are working as we expected? Or maybe your app has a global DB variable – does that mean testing simply isn’t possible?

What about those APIs we are interacting with? Do we stub them? Do we hit the test API? What happens if we hit API rate limits or there isn’t even a test API?

Alright, alright! Take a second to breathe and let me fill you in on a little secret…

Testing isn’t hard, but simple tutorials don’t do it justice
Testing isn’t any harder than writing any other Go code. In fact, if we wanted we could test our code by just writing a main package and interacting with our application code. We could panic when something doesn’t act the way we expected, and viola – we have a test!

But why does it feel so hard? Probably because we simplify the examples to the point that they lose all of their value.

Think about it, when is the last time you wrote a Palindrome function?

Never? So why are all these tutorials showing us how to test one?

Why aren’t they showing us how to test realistic software? What happened to the example where we test a real HTTP handler that needs access to a data store? Or the tutorial where we build an API client and learn how to test it WITHOUT always hitting the real API. Wouldn’t it be great if we could learn how to test a real web app with a real DB and a real integration to a payments API like Stripe?

Test with Go is different.
In this course you will learn how to test REAL software, not palindrome functions.

We will have to look at a few isolated examples in order to learn specific testing techniques, but that isn’t enough to solidify a concept so we won’t stop there. We will build real projects that teach you how to apply all of these testing skills in real software.

In one project we build a web application which allows us to address the complexities that come up while testing an application that uses a database, third party APIs, and more. In another project we look at how internal testing helps us verify our intermediate steps are correct, while also discussing the downside to testing unexported functions.

You will learn about common pitfalls to avoid in order to write more testable code. You will learn how to incrementally fix code that has already succumbed to many of these pitfalls, allowing you to avoid a massive PR that makes your reviewer cry inside.

When you run into an application with a global DB variable you won’t need to give up on testing. You will learn exactly how to make small, manageable changes to the code that allow you to start testing it almost immediately.

The next time you are asked whether the data store should be mocked or if a real SQL database should be used you will be able to discuss the pros and cons of both approaches with your teammates and decide on a proper plan of action.

After completing this course you will have the knowledge and the skills necessary to start testing your own projects. You will still have to put in the work, but the mystery, the confusion, and the frustration will be gone.

DOWNLOAD FROM RAPIDGATOR

rapidgator.net/file/412d336e43493c71bfc2c172b2fac38a/Test-with-Go-Jon-Calhoun.part01.rar.html
rapidgator.net/file/f3cfd3b9f4d6ef4a8e14eb33f53b2a42/Test-with-Go-Jon-Calhoun.part02.rar.html
rapidgator.net/file/607d0ef6beba3d5ba6cbb169e270a2fd/Test-with-Go-Jon-Calhoun.part03.rar.html
rapidgator.net/file/679de4cd4006180179fd33ee4df330ea/Test-with-Go-Jon-Calhoun.part04.rar.html
rapidgator.net/file/bfe65e270f7080492e21be4cf0af6e9e/Test-with-Go-Jon-Calhoun.part05.rar.html
rapidgator.net/file/3fd70805e9dd47d00c38e0d4be917f68/Test-with-Go-Jon-Calhoun.part06.rar.html
rapidgator.net/file/17a3f3eb39792ec4b5a04a8fdab05920/Test-with-Go-Jon-Calhoun.part07.rar.html
rapidgator.net/file/d0b1b0188a9f2fac5a695a9dfd7a3531/Test-with-Go-Jon-Calhoun.part08.rar.html
rapidgator.net/file/dcbef76d00ee2d5379c9816db7459622/Test-with-Go-Jon-Calhoun.part09.rar.html
rapidgator.net/file/684e4e7c285a7d6c77a720b7fd1575e9/Test-with-Go-Jon-Calhoun.part10.rar.html
rapidgator.net/file/bc9de5d0b74290019deb9004b3555ad3/Test-with-Go-Jon-Calhoun.part11.rar.html
rapidgator.net/file/9e61f8f7867c6ae4a5e2b3061c3762d2/Test-with-Go-Jon-Calhoun.part12.rar.html
rapidgator.net/file/21240c794c3077aba4dc425314189ff0/Test-with-Go-Jon-Calhoun.part13.rar.html
rapidgator.net/file/05210be98f248ce673898c0a63e85ab9/Test-with-Go-Jon-Calhoun.part14.rar.html
rapidgator.net/file/7a5f019e3745db4403d661a1b027732a/Test-with-Go-Jon-Calhoun.part15.rar.html
rapidgator.net/file/30c5b2daf8fc9547f14e4058e78fe8f8/Test-with-Go-Jon-Calhoun.part16.rar.html
rapidgator.net/file/3258c11e4e36cf8dd721d408b920d295/Test-with-Go-Jon-Calhoun.part17.rar.html
rapidgator.net/file/85abafdbfaf5e40ee1dae227e315af8a/Test-with-Go-Jon-Calhoun.part18.rar.html
rapidgator.net/file/d11aeaaeac59f47322c11904cf141bcb/Test-with-Go-Jon-Calhoun.part19.rar.html
rapidgator.net/file/e2cc7f16eab4adcad74b66b013c8d6d0/Test-with-Go-Jon-Calhoun.part20.rar.html
rapidgator.net/file/75fcf5378ed1e1a2ee992b94c1e723cd/Test-with-Go-Jon-Calhoun.part21.rar.html
rapidgator.net/file/9db5c9fedb6c0992975d5080f19e1aee/Test-with-Go-Jon-Calhoun.part22.rar.html
rapidgator.net/file/772403b75d3f8b51f8119184f4e45399/Test-with-Go-Jon-Calhoun.part23.rar.html
rapidgator.net/file/f3f64fd6c6418d9d161dd58e8aa53c31/Test-with-Go-Jon-Calhoun.part24.rar.html
rapidgator.net/file/9822ab2dc7135ea2fb9b643d89b10bfa/Test-with-Go-Jon-Calhoun.part25.rar.html
rapidgator.net/file/7a89ee74fe801bc8f5007adbef7624a6/Test-with-Go-Jon-Calhoun.part26.rar.html
rapidgator.net/file/d240f5ea2a2cb8c55183becad05f0ea3/Test-with-Go-Jon-Calhoun.part27.rar.html
rapidgator.net/file/b1ff2d18b3ea9590d3d752ad25c347bc/Test-with-Go-Jon-Calhoun.part28.rar.html
rapidgator.net/file/807d9b5cc1b9410325b0094b2edad71a/Test-with-Go-Jon-Calhoun.part29.rar.html
rapidgator.net/file/acc9c95adafd26fdf33160fb2695a175/Test-with-Go-Jon-Calhoun.part30.rar.html
rapidgator.net/file/89927176eb79e082430a9262659c6004/Test-with-Go-Jon-Calhoun.part31.rar.html
rapidgator.net/file/d0fd408ba20ba7a557cd0cc23f3fdd89/Test-with-Go-Jon-Calhoun.part32.rar.html
rapidgator.net/file/00fdfb2fc95f1ee0d5f4ca0519a7f32c/Test-with-Go-Jon-Calhoun.part33.rar.html
rapidgator.net/file/59446f45d73db374de6a924496efdf51/Test-with-Go-Jon-Calhoun.part34.rar.html
rapidgator.net/file/8fc3fc4940ea94b03939e69dceaddaef/Test-with-Go-Jon-Calhoun.part35.rar.html
rapidgator.net/file/d78722511b6051d08043e00205741179/Test-with-Go-Jon-Calhoun.part36.rar.html
rapidgator.net/file/47243edac50a1a69147567cff5ad5748/Test-with-Go-Jon-Calhoun.part37.rar.html
rapidgator.net/file/6987344d5fc204c6e2849631d0671293/Test-with-Go-Jon-Calhoun.part38.rar.html
rapidgator.net/file/64dac75fe48bc41a6b498add0162b4a3/Test-with-Go-Jon-Calhoun.part39.rar.html
rapidgator.net/file/7c2b7ca9cd199483aa7b192b709c8594/Test-with-Go-Jon-Calhoun.part40.rar.html
rapidgator.net/file/27e61b6e361dc3205a0c0c2d86b7f710/Test-with-Go-Jon-Calhoun.part41.rar.html
rapidgator.net/file/fdf6d6a12226eea1c3cbccd415d6b35d/Test-with-Go-Jon-Calhoun.part42.rar.html
rapidgator.net/file/77cba86d1b8411010ba54d3c6d5731bd/Test-with-Go-Jon-Calhoun.part43.rar.html
rapidgator.net/file/9b3e7c96b1ec3fe8ae0007db45a7dd44/Test-with-Go-Jon-Calhoun.part44.rar.html

DOWNLOAD FROM TURBOBIT

trbbt.net/12gihjnj63yb/Test-with-Go-Jon-Calhoun.part01.rar.html
trbbt.net/6rr6ifsaiths/Test-with-Go-Jon-Calhoun.part02.rar.html
trbbt.net/qx2uak0lx56l/Test-with-Go-Jon-Calhoun.part03.rar.html
trbbt.net/cfln8fkbv5o9/Test-with-Go-Jon-Calhoun.part04.rar.html
trbbt.net/co2pqql5vqqg/Test-with-Go-Jon-Calhoun.part05.rar.html
trbbt.net/cw6za98xs5mo/Test-with-Go-Jon-Calhoun.part06.rar.html
trbbt.net/p87zyjw1gfvz/Test-with-Go-Jon-Calhoun.part07.rar.html
trbbt.net/135044rca7iq/Test-with-Go-Jon-Calhoun.part08.rar.html
trbbt.net/zto1pf6gf06v/Test-with-Go-Jon-Calhoun.part09.rar.html
trbbt.net/0e1e9e3nga36/Test-with-Go-Jon-Calhoun.part10.rar.html
trbbt.net/7rvg4a1ps25q/Test-with-Go-Jon-Calhoun.part11.rar.html
trbbt.net/9hq68fwjmy36/Test-with-Go-Jon-Calhoun.part12.rar.html
trbbt.net/n18pv0l6gwxi/Test-with-Go-Jon-Calhoun.part13.rar.html
trbbt.net/z17vb912cxm0/Test-with-Go-Jon-Calhoun.part14.rar.html
trbbt.net/9ztyowr94d94/Test-with-Go-Jon-Calhoun.part15.rar.html
trbbt.net/573pjyjl5jbp/Test-with-Go-Jon-Calhoun.part16.rar.html
trbbt.net/wvg9tglronm4/Test-with-Go-Jon-Calhoun.part17.rar.html
trbbt.net/amt6hxpp1twi/Test-with-Go-Jon-Calhoun.part18.rar.html
trbbt.net/lp8kxu85ikox/Test-with-Go-Jon-Calhoun.part19.rar.html
trbbt.net/luz0igdblq6c/Test-with-Go-Jon-Calhoun.part20.rar.html
trbbt.net/wtqo208rxh1u/Test-with-Go-Jon-Calhoun.part21.rar.html
trbbt.net/68asx1g48ucn/Test-with-Go-Jon-Calhoun.part22.rar.html
trbbt.net/0z1n80qrjj70/Test-with-Go-Jon-Calhoun.part23.rar.html
trbbt.net/4pfz9whzjsor/Test-with-Go-Jon-Calhoun.part24.rar.html
trbbt.net/4yl4tsvborjk/Test-with-Go-Jon-Calhoun.part25.rar.html
trbbt.net/odopw9b1ptai/Test-with-Go-Jon-Calhoun.part26.rar.html
trbbt.net/dhk6p2v6d45y/Test-with-Go-Jon-Calhoun.part27.rar.html
trbbt.net/ndvu62bcwmae/Test-with-Go-Jon-Calhoun.part28.rar.html
trbbt.net/mdx4ef8mh8i9/Test-with-Go-Jon-Calhoun.part29.rar.html
trbbt.net/oorhighxx585/Test-with-Go-Jon-Calhoun.part30.rar.html
trbbt.net/ce277879m4na/Test-with-Go-Jon-Calhoun.part31.rar.html
trbbt.net/vlahnqesnxo3/Test-with-Go-Jon-Calhoun.part32.rar.html
trbbt.net/mnoqbytvo4hf/Test-with-Go-Jon-Calhoun.part33.rar.html
trbbt.net/d34949u48yp8/Test-with-Go-Jon-Calhoun.part34.rar.html
trbbt.net/pgqp8kcukyxm/Test-with-Go-Jon-Calhoun.part35.rar.html
trbbt.net/k6b1rkoytw5v/Test-with-Go-Jon-Calhoun.part36.rar.html
trbbt.net/e0bphw498lds/Test-with-Go-Jon-Calhoun.part37.rar.html
trbbt.net/wk6w8allhtfy/Test-with-Go-Jon-Calhoun.part38.rar.html
trbbt.net/k6x1o5o5a832/Test-with-Go-Jon-Calhoun.part39.rar.html
trbbt.net/wa16k6ficzlz/Test-with-Go-Jon-Calhoun.part40.rar.html
trbbt.net/kyou1qlpmpcy/Test-with-Go-Jon-Calhoun.part41.rar.html
trbbt.net/y1r1hgh8tays/Test-with-Go-Jon-Calhoun.part42.rar.html
trbbt.net/nphyzc5otu4p/Test-with-Go-Jon-Calhoun.part43.rar.html
trbbt.net/r3ziwdddac5p/Test-with-Go-Jon-Calhoun.part44.rar.html

If any links die or problem unrar, send request to
forms.gle/e557HbjJ5vatekDV9

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.