Timeline for How do I test unreachable code?
Current License: CC BY-SA 4.0
        10 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 6, 2018 at 0:51 | answer | added | User | timeline score: 0 | |
| Dec 5, 2018 at 10:41 | answer | added | Doc Brown | timeline score: 1 | |
| Dec 5, 2018 at 9:50 | comment | added | John Wu | The protocol is COM+. Its security mechanism leverages COM+ security's deepest, darkest secrets. Attempting to mock it would unleash chaos in our environments. | |
| Dec 5, 2018 at 9:43 | comment | added | Laiv | While I would try to mock that request (I'm quite stubborn), looks like the cost of testing 1/3 of a conditional block won't provide you with a noticeable benefit. Have you considered a test double? What kind of service is "Foo". What protocol does it implement? | |
| Dec 5, 2018 at 9:29 | history | edited | John Wu | CC BY-SA 4.0 | 
                
                    added 667 characters in body; edited title 
                
             | 
| Dec 5, 2018 at 9:29 | comment | added | John Wu | @KilianFoth Great suggestion for the title, that is exactly what I was trying to spit out. | |
| Dec 5, 2018 at 7:19 | comment | added | Kilian Foth | Please clarify. Is it impossible to get a third kind of error because the proxy just doesn't issue any? Then you can mock the proxy and substitute one that does issue it. Or is it because Constantshas only these two values? Then maybe the question should be titled "How do I test unreachable code?" | |
| Dec 5, 2018 at 6:06 | answer | added | Kain0_0 | timeline score: 6 | |
| Dec 5, 2018 at 5:31 | comment | added | Doc Brown | When proxyis a third party service, can you replace it by some mock service, maybe by configuration? That would be a seem for testing. If not, I think "mistake in the requirements" describes it well. | |
| Dec 5, 2018 at 3:14 | history | asked | John Wu | CC BY-SA 4.0 |