minus-squaretechnologenesis@programming.devtoGolang@programming.dev•Don't use mockslinkfedilinkEnglisharrow-up1·edit-23 years agoMocking and dependency injection don’t seem to be mutually exclusive, if anything dependency injection can make it easier to get the component you’re testing to interface with the mock linkfedilink
technologenesis@programming.dev to King Gizzard and the Lizard Wizard@lemmy.mlEnglish · 3 years agoAny gizzheads from other timelands listening to Petro yet?plus-squareprogramming.devimagemessage-square0linkfedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageAny gizzheads from other timelands listening to Petro yet?plus-squareprogramming.devtechnologenesis@programming.dev to King Gizzard and the Lizard Wizard@lemmy.mlEnglish · 3 years agomessage-square0linkfedilink
Mocking and dependency injection don’t seem to be mutually exclusive, if anything dependency injection can make it easier to get the component you’re testing to interface with the mock