CFC-Servers / CFC-Servers/GLuaTest

Stub call history should table.Copy

Open
#106 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
Lua
Stars
87
Forks
14
PR merge metrics
No merged PRs in 30d

Description

When storing the call history we're gonna need to be smarter about how we store the params in the case that the given arg might change after the call, especially with tables.

Even worse, ephemeral objects will just be like NULL or whatever if things change so idk exactly what to do about that.

ref: https://github.com/CFC-Servers/GLuaTest/blob/main/lua/gluatest/stubs/stub_maker.lua#L93

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at lua/gluatest/stubs/stub_maker.lua around line 93 and trace how stub call-history arguments are stored. Determine the expected behavior for tables and ephemeral objects before choosing the smallest change. Done means later argument mutations no longer make recorded history inaccurate, with coverage for the identified cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.