Tags: google/cadvisor
Tags
Unit test: MachineInfo Clone() method Add a unit test that ensures that Clone() method clones all fields and that the cloned struct equals the original. To avoid missing fields in the future, the test fails if one of the struct's fields is populated with a zero-value. The unit test uses reflection to achieve that. Signed-off-by: Itamar Holder <[email protected]>
PreviousNext