Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Exploring the details of the project we want to write tests for

For the purpose of demonstrating the creation and use of mocks in our code, we will be working with the example code from the Chapter04/dependency package. This package defines a Collector type whose purpose is to assemble a set of direct and indirect (transitive) dependencies for a given project ID. To make things a bit more interesting, let's assume that each dependency can belong to one of the following two categories:

  • A resource that we need to include (for example, an image file) or reserve (for example, a block of memory or an amount of disk space)
  • Another project with its own set of dependencies

To obtain the list of direct dependencies and their respective types, the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content