search for: createteststub

Displaying 2 results from an estimated 2 matches for "createteststub".

2017 Jul 31
2
Test Error Paths for Expected & ErrorOr
...were really embedded deep into llvm::Error, then it could differentiate between the various handles in a handleError - except I suppose it'd have no way of creating arbitrary errors required to pass to them - maybe with some API entry point (give for any T that is an ErrorInfo, have ErrorInfo::createTestStub or the like that could be used). It'd be tricky, I'd imagine. - Dave > > I will get back to you with results of a bigger test run asap. > > Am 28.07.17 um 23:36 schrieb Lang Hames: > > Hi Stefan, David, > > This is very interesting stuff - it adds a dimension of e...
2017 Jul 28
3
Test Error Paths for Expected & ErrorOr
Hi Stefan, David, This is very interesting stuff - it adds a dimension of error security that Error/Expected can't provide on their own. I think it would be interesting to try to build a tool around this. Did you identify many cases where "real work" (in your example, the nullptr dereference" was being done in an error branch? My suspicion is that that should be rare, but that