---
title: "Colin J Lacy (@colinjlacy) | Hashnode"
description: "A software engineer and recovering architect writing about things I find interesting code and cloud. Read the latest articles by Colin J Lacy on Hashnode."
url: "https://hashnode.com/@colinjlacy"
---

@colinjlacy

# Colin J Lacy

@colinjlacy · Joined November 2023

A software engineer and recovering architect writing about things I find interesting code and cloud.

## Comments

[ALFRED OKORONKWO Thanks for reading and commenting!](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63/comment/67a7a3434025d9313c4afe06#reply-67a8884ac920da73d7cf3f31)

Reply · Article · Feb 9, 2025 · [Mocking Imported Libraries in Golang Unit Tests](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63)

[Thanks! I'm glad you got something useful out of it. I haven't tried it, but in theory it should work with FileInfo.isDir() the same way, as long as the mock matches the function signature. But, to your point, I've been using fstest to create a mock file system whenever I have file calls that I have to test.](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63/comment/67a7a3434025d9313c4afe06#reply-67a886c484f916f9d10ec074)

Reply · Article · Feb 9, 2025 · [Mocking Imported Libraries in Golang Unit Tests](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63)
