LibCoder

Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples

1C Agda Go
Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples
Автор: Simion Adelina
Дата выхода: 2023
Издательство: Packt Publishing Limited
Количество страниц: 338
Размер файла: 21,2 МБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
Preface xviiChapter 1: Introduction to Ethical Hacking....1Chapter 2: Building a Penetration Testing Lab....31Chapter 3: Setting Up for Advanced Penetration Testing Techniques....83Chapter 4: Passive Reconnaissance....117Chapter 5: Exploring Open-Source Intelligence....143Chapter 6: Active Reconnaissance....203Chapter 7: Performing Vulnerability Assessments....241Chapter 8: Understanding Network Penetration Testing....283Chapter 9: Performing Network Penetration Testing....327Chapter 10: Post-Exploitation Techniques....375Chapter 11: Delving into Command and Control Tactics....427Chapter 12: Working with Active Directory Attacks....475Chapter 13: Advanced Active Directory Attacks....527Chapter 14: Advanced Wireless Penetration Testing....565Chapter 15: Social Engineering Attacks....617Chapter 16: Understanding Website Application Security....639Chapter 17: Advanced Website Penetration Testing....687Chapter 18: Best Practices for the Real World....743Appendix....767Summary....788Index....791

Описание

Коротко и по делу о том, что важно знать про testing.

This book shows you how to utilize test-driven development (TDD), a widely adopted industry practice, for testing your Go apps at different levels. Experienced developers understand the importance of designing a comprehensive testing strategy to ensure efficient shipping and maintaining services in production. You'll also explore challenges faced in testing concurrent code, and learn how to leverage generics and write fuzz tests.

You'll then learn how to structure and run your unit tests using Go's standard testing library, and explore two popular testing frameworks, Testify and Ginkgo. The book begins by teaching you how to use TDD to tackle various problems, from simple mathematical functions to web apps. You'll also implement test suites using table-driven testing, a popular Go technique. Finally, you'll explore the tricky aspects of implementing and testing TDD in production, such as refactoring your code and testing microservices architecture with contract testing implemented with Pact. As you advance, you'll write and run behavior-driven development (BDD) tests using Ginkgo and Godog. All these techniques will be demonstrated using an example REST API, as well as smaller bespoke code examples.

By the end of this book, you'll have learned how to design and implement a comprehensive testing strategy for your Go applications and microservices architecture.

What you will learnCreate practical Go unit tests using mocks and assertions with Testify

Build table-driven test suites for HTTP web applications

Write BDD-style tests using the Ginkgo testing framework

Use the Godog testing framework to reliably test web applications

Verify microservices architecture using Pact contract testing

Develop tests that cover edge cases using property testing and fuzzing

Who this book is forIf you are an intermediate-level developer or software testing professional who knows Go fundamentals and is looking to deliver projects with Go, then this book is for you. Knowledge of Go syntax, structs, functions, and interfaces will help you get the most out of this book.

Если материал оказался полезен — сохраните страницу.

testing using tests book test driven this your

Частые вопросы

Можно ли скачать «Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples» бесплатно?

Да, «Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 21,2 МБ.

Кто автор и когда вышла книга?

автор — Simion Adelina, издательство Packt Publishing Limited, год выпуска 2023, 338 страниц.

О чём книга «Test-Driven Development in Go: A practical guide to writing idiomatic and efficient Go tests through real-world examples»?

Experienced developers understand the importance of designing a comprehensive testing strategy to ensure efficient shipping and maintaining services in production.

Похожие материалы