Alan Somers

Results 235 issues of Alan Somers

A common pattern is for a module to define an inner private module, then reexport parts of that private module as its own public API. Two ways of doing this...

Running my benchmark with criterion, I consistently observe two problems: * A bimodal distribution of execution times. This might be due to the CPU's turbo boost, even though I tried...

Iai is very exciting! I love the idea of benchmarks that are *fast* and *deterministic*. But relying on Cachegrind has some drawbacks: * Limited OS support * Requires the user...

It looks like the `bitfield` macro supports placing pretty much any compiler attribute on the struct or on any field. This is very useful, especially for doing things like `#[derive(Clone)]`....

The `bitfield` method only creates getter and accessor methods. It would be great if it could create constructors too. For example, ```rust bitfield! { struct Foo(u16); u8; a, _: 7,...

Could you please add an overview of the design to the documentation? I can't get an idea for how efficiently this crate is implemented without reading the source, and macro...

When I tried to upgrade mock_shoout from Mockers 0.13.4 to 0.20.0, every place I used `#[mocked]` began to fail with the error `missing Handle in implementation`. This appears to be...

@jansucan discovered that if an ATF test case enters capability mode with `cap_enter`, then it won't be able to write the results file. It seems like this would be easy...

It would be really handy if Kyua would print partial test results on SIGINFO. It would look something like this: ``` $ kyua test my_test my_test:a -> passed [1.2s] my_test:b...

Test programs that aren't compatible with /bin/sh can specify a different shell using `-s`. For example: ```sh #!/usr/libexec/atf-sh -s/usr/local/bin/ksh93 ``` But if that shell is not found, then Kyua cannot...