---
title: "ALFRED OKORONKWO (@afredO) | Hashnode"
description: "ALFRED OKORONKWO (@afredO) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@afredO"
---

@afredO

# ALFRED OKORONKWO

@afredO · Joined February 2025

## Comments

[Yeah, should work if FileInfo is mocked and returned from osStats call](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63/comment/67a7a3434025d9313c4afe06#reply-67a887ffcffe09ad02f35afc)

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

[This is quite good. Clearly defines what it means to write maintainable code. I'd love to see how it would have handled FileInfo.IsDir() although it could be taken care of with fstest.](https://hashnode.com/posts/mocking-imported-libraries-in-golang-unit-tests/65783d3cbe2a26b51d52cc63/comment/67a7a3434025d9313c4afe06)

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