Lab::Moose::Connection::Mock - Mock connection
version 3.642
use Lab::Moose; my $instrument = instrument( type => 'some_instrument', connection_type => 'Mock', connection_options => { log_file => 'log.yml' }, # or log_fh => $fh, );
Mock connection object for unit testing. Uses previously recorded log recorded with a real instrument using Lab::Instrument::Log.
This software is copyright (c) 2018 by the Lab::Measurement team; in detail:
Copyright 2016 Simon Reinhardt 2017 Andreas K. Huettel, Simon Reinhardt
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Lab::Measurement, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lab::Measurement
CPAN shell
perl -MCPAN -e shell install Lab::Measurement
For more information on module installation, please visit the detailed CPAN module installation guide.