filmov
tv
Test To Learn: 'Go' Session#1 (Golang with TDD) | let's code

Показать описание
This is a live coding session recorded to learn "Go" as a beginner through testing and building a small functionality of checking if an HTTP service is available or not.
---------
Chapters
00:00 - Intro
04:35 - extract Constants; change to arrays as Variables for Tests via For Loop
08:45 - Use HTTP Test Server to Mock Response for Tests
11:00 - Implement Structs
13:25 - Refactor Tests to reuse Mock among different variations
20:45 - Benchmarking Tests for Performance Checks, fix an Issue
25:49 - Using "init()" in Test to rid noise of Stdout Logging
26:45 - Make another minor fix for less operations
27:50 - Add Sub-package, refactor feature & test to idiomatic form
29:35 - Test for Refactoring, Fix the issues
36:25 - Add Interface, then Mock for better Tests
42:30 - Last Test Runs
---------
While trying to build a simple small util from scratch alongwith tests, we come across testing, benchmark and mocking while seeing use of "const", "var", "if-else", "for-range", "for loops", "structs", "interface", "package", "type conversion", "string splitting", "concatenation" and some more.
#Golang #Go #TDD #Testing #Benchmark #Tutorial #LiveCoding #Coding #LetsCode #DesignCodeEvolve #Programming #HTTPTest
---------
Chapters
00:00 - Intro
04:35 - extract Constants; change to arrays as Variables for Tests via For Loop
08:45 - Use HTTP Test Server to Mock Response for Tests
11:00 - Implement Structs
13:25 - Refactor Tests to reuse Mock among different variations
20:45 - Benchmarking Tests for Performance Checks, fix an Issue
25:49 - Using "init()" in Test to rid noise of Stdout Logging
26:45 - Make another minor fix for less operations
27:50 - Add Sub-package, refactor feature & test to idiomatic form
29:35 - Test for Refactoring, Fix the issues
36:25 - Add Interface, then Mock for better Tests
42:30 - Last Test Runs
---------
While trying to build a simple small util from scratch alongwith tests, we come across testing, benchmark and mocking while seeing use of "const", "var", "if-else", "for-range", "for loops", "structs", "interface", "package", "type conversion", "string splitting", "concatenation" and some more.
#Golang #Go #TDD #Testing #Benchmark #Tutorial #LiveCoding #Coding #LetsCode #DesignCodeEvolve #Programming #HTTPTest