---
title: "Discussion on \"Different test scopes in Rust\" | Hashnode"
description: "Discussion on \"Different test scopes in Rust\". I'm still working on learning Rust. Beyond syntax, learning a language requires familiarizing oneself with its idioms and ecosystem. I'm at a point where I want to explore testing in Rust.\nThe initial problem\nWe have used Dependency Injection a lot -..."
url: "https://hashnode.com/posts/different-test-scopes-in-rust/6346e03984c4aa2c8e92ebab"
---

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

Discussion

# [Different test scopes in Rust](https://frankel.hashnode.dev/different-test-scopes-in-rust?utm_source=hashnode&utm_medium=feed)

I'm still working on learning Rust. Beyond syntax, learning a language requires familiarizing oneself with its idioms and ecosystem. I'm at a point where I want to explore testing in Rust. The initial problem We have used Dependency Injection a lot -...

Oct 12, 2022 · 10 min read · frankel.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#dependency-injection](https://hashnode.com/tag/dependency-injection)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

@nfrankel · Geneva

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

Developer Advocate

Technologist focusing on cloud-native technologies, DevOps, CI/CD pipelines, and system observability. His focus revolves around creating technical content, delivering talks, and engaging with developer communities to promote the adoption of modern software practices. With a strong background in software, he has worked extensively with the JVM, applying his expertise across various industries. In addition to his technical work, he is the author of several books and regularly shares insights through his blog and open-source contributions.

## Responses 2

Markdown supported · ⌘↵ to post

[MarcBush](https://hashnode.com/@DeniseErickson)

[Dec 9, 2022](https://hashnode.com/posts/different-test-scopes-in-rust/6346e03984c4aa2c8e92ebab/comment/63933300855b6005fa6c194d)

Rust provides the ability to define multiple different functions in a single place, and these functions may have different sets of parameters and return values. To get [Auckland Concrete cutters](https://aucklandconcretecontractors.co.nz/) and learn more new tips for house layers. This feature is commonly used to split up the code into modules, but can also be used to split up test cases, since they can use all the same arguments and return values. The following sections explain how multiple test scopes in Rust work.
