All Questions
1 question
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5votes
3answers
7kviews
How to write tests for function that depends on a config file?
I have a function that uses information from a config file. How do I test the function? Ideally, I'd want to inject my own version of the config file and test from there, but I'm not using dependency ...
- The Overflow Blog
- Featured on Meta
Related Tags
Hot Network Questions
- Using standard AC fixtures for DC applications
- What is "Induced Atmospheric Vibration"?
- The term "finitely generated algebra"
- Children and aliens grow up together
- How to find and replace single characters on either side a pair of variable numbers in Notepad++?
- Why is my password-less SSH login setup from a Windows (Power Shell) machine to a Linux Raspberry Pi is not working as expected?
- Physics equations with universal meaning possible?
- Can a darkmantle willingly detach?
- How does the aboleth's probing telepathy work?
- In light cone, why is it a cone and not a sphere, given that light travels in all directions in space-time? Is it a projection of slice of 4D sphere?
- How to achieve the Steel Division 2 frontline? (Dividing area smoothly with curves using a few points)
- Annotating intentional infinite loop to satisfy "-fanalyzer"
- Reasoning about quest and story deadlocks etc
- Mean Value Theorem 2.0
- Why was the value of modulus (q) chosen small in KYBER and large in DILITHIUM?
- I'm owed money from a non-profit for services rendered, but they are unresponsive
- Function to measure consonance and dissonance in musical tones
- לשנה הבאה בירושלים - why wait till next year
- Can Ljung-Box and ACF Be Used to Assess XGBoost Residuals?
- What is the drawback of always generating passphrases for the user?
- What are 'induced atmospheric variations', and how do they cause grid desynchronization? (Current Spain-wide power outage)
- Could OLS miss statistically significant coefficient because it's too small?
- Idiomatic way of generating a unique filename?
- Why would the forthcoming papal election still be valid if more than 120 Cardinals vote in it, against Universi Dominici Gregis paragraph 33?