---
title: "Discussion on \"Solidity Test Internal Function\" | Hashnode"
description: "Discussion on \"Solidity Test Internal Function\". To test an internal solidity function, create a child contract that inherits from the contract being tested, wrap the parent contract’s internal function with an external one, then test the external function in the child.\nFoundry calls this inheritin..."
url: "https://hashnode.com/posts/solidity-test-internal-function/6430fac1aaa0988d41e538f7"
---

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

Discussion

# [Solidity Test Internal Function](https://rareskills.hashnode.dev/solidity-test-internal-function?utm_source=hashnode&utm_medium=feed)

To test an internal solidity function, create a child contract that inherits from the contract being tested, wrap the parent contract’s internal function with an external one, then test the external function in the child. Foundry calls this inheritin...

Apr 8, 2023 · 3 min read · rareskills.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#testing](https://hashnode.com/tag/testing)
-   [#ethereum-development](https://hashnode.com/tag/ethereum-development)
-   [#blockchain-development](https://hashnode.com/tag/blockchain-development)
-   [#smart-contract-blockchain](https://hashnode.com/tag/smart-contract-blockchain)

## Written by

[RareSkills](https://hashnode.com/@rareskills)

@rareskills

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

A web3 bootcamp that turns junior blockchain developers into senior developers

We turn junior web3 blockchain engineers into senior ones.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
