Join us on a literary world trip!
Add this book to bookshelf
Grey
Write a new comment Default profile 50px
Grey
Subscribe to read the full book or read the first pages for free!
All characters reduced
Test-Driven Development in Go - A practical guide to writing idiomatic and efficient Go tests through real-world examples - cover

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

Adelina Simion

Publisher: Packt Publishing

  • 0
  • 0
  • 0

Summary

Experienced developers understand the importance of designing a comprehensive testing strategy to ensure efficient shipping and maintaining services in production. This book shows you how to utilize test-driven development (TDD), a widely adopted industry practice, for testing your Go apps at different levels. You’ll also explore challenges faced in testing concurrent code, and learn how to leverage generics and write fuzz tests.
The book begins by teaching you how to use TDD to tackle various problems, from simple mathematical functions to web apps. 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. You’ll also implement test suites using table-driven testing, a popular Go technique. As you advance, you’ll write and run behavior-driven development (BDD) tests using Ginkgo and Godog. 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. 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.
Available since: 04/28/2023.
Print length: 342 pages.

Other books that might interest you

  • CISSP Skills Unleashed: Elevate Your Cybersecurity Knowledge Instantly - "Transform your CISSP study experience—access captivating audio lessons made for swift knowledge enhancement!" - cover

    CISSP Skills Unleashed: Elevate...

    Ronan Ashcombe

    • 0
    • 0
    • 0
    CISSP Skills Unleashed: Elevate Your Cybersecurity Knowledge Instantly 
    ⭐⭐ Simplified Guide & Explanations Included ⭐⭐ 
    Are you eager to advance your career and strengthen your expertise in cybersecurity to confidently pass the CISSP Exam 2024-2025?  
    In search of a thorough guide that covers all the essential elements to conquer the CISSP Exam 2024-2025?  
    Your quest ends here! 
    This guide serves as your ultimate resource for enhancing your understanding, applying your skills, and engaging in practical exercises. With this book, you're set for success. 
    Updated for the CISSP 2024-2025 Exam Structure. 
    Key features of this enhanced guide: 
    - In-depth insights about the CISSP Exam 2024-2025 Certification 
    - Comprehensive explanation of essential cybersecurity concepts 
    - Effective strategies for exam preparation and performance 
    Our guide stands out with its extensive coverage, vital for your exam triumph. The concepts are thoroughly explored, not just touched upon. 
    Please note that this guide is an independent resource and is not affiliated with any official CISSP entity. 
    Crafted with a clear layout and straightforward language, our CISSP Exam Guide 2024-2025 ensures smooth transitions between topics. Say farewell to confusing terminology and welcome content that is clear, precise, and technically sound. 
    So, why hesitate? Click the BUY NOW button, secure your guide, and embark on your journey to success with the CISSP Exam 2024-2025!
    Show book
  • Surfing the Tides of Complexity - How Genetic Algorithms Guide Us Through Emergent Phenomena - cover

    Surfing the Tides of Complexity...

    CLINTON YONCK, RICHARD SHEPPARD

    • 0
    • 0
    • 0
    Surfing the Tides of Complexity: How Genetic Algorithms Guide Us Through Emergent Phenomena 
    Do you often find yourself asking: 
    • How do genetic algorithms and neural networks work, and how can I harness their potential for innovation?   
    • What are the practical applications of these advanced technologies, and how can I integrate them into my projects?   
    • Is there a comprehensive guide that simplifies the complexities of genetic algorithms and neural networks for practical understanding? 
    Meet the Author: The Tech Visionary 
    The author, a seasoned expert in the field of genetic algorithms and neural networks, empathizes with readers grappling with the challenges of understanding and implementing these advanced technologies. They've navigated the complexities of coding, experimentation, and real-world applications, striving to demystify these concepts for those eager to embrace the future of technology. 
    What to Expect: 
    • Unlock the secrets behind genetic algorithms and neural networks, unraveling their potential for revolutionizing technology.   
    • Explore real-world applications, from optimizing processes to enhancing artificial intelligence systems.   
    • Gain practical insights into coding and implementing genetic algorithms and neural networks in your projects.   
    • Understand the synergy between these technologies and their role in solving complex problems.   
    • Explore case studies of successful applications in various industries, from healthcare to finance.   
    • Access tips and tricks from renowned experts in the field of artificial intelligence and evolutionary computation.   
    • Master the art of balancing innovation and practicality in your journey through genetic algorithms and neural networks.  
    Show book
  • I Love My Computer Because My Friends Live in It - Stories from an Online Life - cover

    I Love My Computer Because My...

    Jess Kimball Leslie

    • 0
    • 0
    • 0
    "Get off your phone and read Jess Kimball Leslie's funny book!" -- Andy Cohen, host of Bravo's Watch What Happens LiveILove My Computer Because My Friends Live in it is a hilarious memoir of growing up in the early days of the Internet and celebrating technology's role in our lives. Coming of age in suburban Connecticut in the late '80s and early '90s, Jess Kimball Leslie looked to the nascent Internet to find the tribes she couldn't find IRL: fellow Bette Midler fans; women who seemed impossibly sure of their sexuality; interns trudging through similarly soul-crushing media jobs. Through effortlessly comedic storytelling and looks at tech through the ages (with photos!), Jess takes you on a journey through the hilarious times that technology and the Internet changed her life. From accounts of the lawless chat rooms of early AOL to the perpetual high school reunions that are modern-day Facebook and Instagram, Jess's essays paint a clear picture: That each of us has a much more twisted, meaningful, emotional relationship with the online world than we realize or let on.
    Show book
  • TypeScript - A comprehensive guide to TypeScript - cover

    TypeScript - A comprehensive...

    Et Tu Code

    • 0
    • 0
    • 0
    Master TypeScript, the popular JavaScript superset, with this comprehensive guide! 
    Learn how to write better, more maintainable code using TypeScript's advanced features like type checking, interfaces, classes, and modules. 
    This book covers everything from the basics of TypeScript syntax to advanced topics like working with third-party libraries and integrating with other development tools. 
    With real-world examples and step-by-step tutorials, you'll be able to apply your new skills to build robust and scalable applications. 
    Whether you're a beginner or an experienced developer, this guide will help you unlock the full potential of TypeScript and take your coding skills to the next level.
    Show book
  • The Happy Vagina - cover

    The Happy Vagina

    Mika Simmons

    • 0
    • 0
    • 0
    The Happy Vagina shines a light on both the unique and sometimes awkward facts about everything gynaecological, creating an open dialogue for all sexes and generations. 
    “A fierce and fabulous celebration of women. Mika’s straight-talking, no-nonsense writing means she is the friend we don’t just want, but need. Beautiful and empowering. A must read.” – Laura Whitmore 
    In a world where the vagina is still, too frequently, considered taboo, this book aims to entertain, educate and enlighten. Mika Simmons, creator and host of 'The Happy Vagina' podcast, rightly believes that this taboo is problematic and can lead to a whole host of health issues. Intimate health and pleasure can be hard to talk about, regardless of background or experience, The Happy Vagina is here to smash this stigma for women, and men. 
    Medicine, politics, religion, and social conditioning have all had a thoroughly improper and exaggerated influence on women’s being – with many of the falsehoods told still negatively impacting us. Mika’s intention is to re-educate us all by shining a light on these ridiculous, historical myths and then debunk them by sharing the most unique, incredible, and empowering facts about the vagina, thereby encouraging a more open dialogue for everyone. 
    Covering everything from the myth of the wandering womb to mindful masturbation and orgasms to period poverty, the history of contraception, pregnancy and being childfree, Mika’s approachable and positive message urges all of us to know, and appreciate, our own bodies. 
    The Happy Vagina is a best-selling, top-rated book in the medical genre, providing an illustrated guide to gynaecology and obstetrics. Mika Simmons promotes a healthy body and spirit, making this book a must-read for anyone interested in fitness and women's health. 
    For fans of Laura Bates (Fix the System, Not the Women), Davinia Taylor (It's Not A Diet), Matthew Mcconaughey (Greenlights), Lara Briden Nd (Period Repair Manual), and Cory Silverberg (The Ultimate Guide to Sex and Disability). 
    HarperCollins 2022
    Show book
  • Curly and Floppy Twistytail (The Funny Piggie Boys) - cover

    Curly and Floppy Twistytail (The...

    Howard R. Garis

    • 0
    • 0
    • 0
    The adventures of two little pig boys and their mom and dad.  "Once upon a time, not so very many years ago, in the days when there were fairies and giants and all things like that, there lived in a little house, on the edge of a wood, a family of pigs. Now these pigs weren't like the pigs, which perhaps you children have seen on most farms. No, indeed! They were just the nicest cleanest, sweetest pigs you ever dreamed of—not that pigs on a farm can't be clean, if they want to, but, somehow or other, no one seems to have time to see that they are clean."    - Summary by Phil chenevert and the author
    Show book