Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Cap. 27 – Testes & Benchmarks – 6. Cobertura
Play lesson

Aprenda Go 🇧🇷 - Cap. 27 – Testes & Benchmarks – 6. Cobertura

5.0 (2)
47 learners

What you'll learn

This course includes

  • 21.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

- "Cobertura" em se tratando de testes se refere a quanto do seu código, percentualmente, está sendo testado. (E antes que alguem fique neurótico querendo 100%: em geral, 70-80% tá ótimo.) - A flag -cover faz a análise de cobertura do nosso código. - Podemos utilizar a flag -coverprofile [arquivo] para salvar a análise de cobertura em um arquivo. - Na prática: - go test -cover - go test -coverprofile c.out - go tool cover -html=c.out ← abre no browser - go tool cover -h ← para mais detalhes

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere