---
title: "Discussion on \"Functions calling order in unit tests in C++\" | Hashnode"
description: "Discussion on \"Functions calling order in unit tests in C++\". Welcome to the next pikoTutorial!\nTo ensure a certain order of function calls, GTest provides 2 ways to do that:\n\nInSequence object\nSequence object\nInSequence object\nThe simplest way to expect specific function call order is to create a InSequence ob..."
url: "https://hashnode.com/posts/functions-calling-order-in-unit-tests-in-c/6847d7fad34af1b2bf494b17"
---

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

Discussion

# [Functions calling order in unit tests in C++](https://pikotutorial.hashnode.dev/functions-calling-order-in-unit-tests-in-c?utm_source=hashnode&utm_medium=feed)

Welcome to the next pikoTutorial! To ensure a certain order of function calls, GTest provides 2 ways to do that: InSequence object Sequence object InSequence object The simplest way to expect specific function call order is to create a InSequence ob...

Jun 10, 2025 · 1 min read · pikotutorial.hashnode.dev  
Read the article

-   [#gtest](https://hashnode.com/tag/gtest)
-   [#cpp](https://hashnode.com/tag/cpp)
-   [#unittesting](https://hashnode.com/tag/unittesting)
-   [#pikotutorial](https://hashnode.com/tag/pikotutorial)

## Written by

[pikoTutorial](https://hashnode.com/@pikotutorial)

@pikotutorial

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
