---
title: "Discussion on \"TDD - You can write code without actual hardware (Part I)\" | Hashnode"
description: "Discussion on \"TDD - You can write code without actual hardware (Part I)\". This post is an extension of \"Another mock example using StubWithCallback\". Previously, test_eeprom_controller.c includes only one test case.\nvoid test_mock_write_read_byte(void)\n{\n    uint32_t test_address = 0;\n    uint8_t write_data = 0xAA;\n    fla..."
url: "https://hashnode.com/posts/tdd-you-can-write-code-without-actual-hardware-part-i/64a78c035dcb0786a74400e2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [TDD - You can write code without actual hardware (Part I)](https://hyunwoochoi.hashnode.dev/tdd-you-can-write-code-without-actual-hardware-part-i?utm_source=hashnode&utm_medium=feed)

This post is an extension of "Another mock example using StubWithCallback". Previously, test\_eeprom\_controller.c includes only one test case. void test\_mock\_write\_read\_byte(void) { uint32\_t test\_address = 0; uint8\_t write\_data = 0xAA; fla...

Jul 7, 2023 · 3 min read · hyunwoochoi.hashnode.dev  
Read the article

-   [#ceedling](https://hashnode.com/tag/ceedling)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#tdd](https://hashnode.com/tag/tdd)

## Written by

[Hyunwoo Choi](https://hashnode.com/@choi)

@choi · Minneapolis, MN

  
[View profile](https://hashnode.com/@choi)

#firmware engineer #C/C++ #TDD #embedded system #ARM processor

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
