From the course: Go Essentials: Concurrency, Connectivity, and High-Performance Apps
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Challenge: Testing - Go Tutorial
From the course: Go Essentials: Concurrency, Connectivity, and High-Performance Apps
Challenge: Testing
(upbeat music) - [Instructor] In our TestMany functions, we wrote the test case manually in the code. I'd like you to change it, and instead of writing the test cases in the Go code, read them from a CSV file. This has the advantage that people who do not know Go, such as product managers, can add test cases. So your code should have TestMany and then read the test cases and check them. To work with CSV files, you can use the encoding CSV package from the standard library.