# \#mock

**URL:** https://racket.discourse.group/tag/mock/240.md

[Latest](https://racket.discourse.group/latest.md) · [Categories](https://racket.discourse.group/categories.md) · [Tags](https://racket.discourse.group/tags.md)

---

## [Mocking system effectively](https://racket.discourse.group/t/mocking-system-effectively/3643)

<div class="topic-metadata">

**Author:** [@robertpostill](https://racket.discourse.group/u/robertpostill)\
**Replies:** 7\
**Last updated:** [March 26, 2025, 9:47am UTC](https://racket.discourse.group/t/mocking-system-effectively/3643 "2025-03-26T09:47:07Z")

</div>

I'm trying to mock a side-effect-riddled process. Part of this is to wrap a call to ifconfig. The code I'm wrapping looks like this: (define (get-mac-address #:ifconfig-invoker \[system system\]) (define mac-address-r…
