-
-
25 Sep 2021 18:50:13 UTC
- Distribution: Mock-Data
- Module version: 0.03
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (195 / 7 / 0)
- Kwalitee
Bus factor: 1- 75.40% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (55.79KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
Mock::Data::Plugin::Net - Collection of generators for Internet-related data
SYNOPSIS
$mock= Mock::Data->new(['Net']); $mock->ipv4; # "127.54.23.132" $mock->cidr; # "127.43.0.0/16" $mock->macaddr; # "fc:34:23:98:13:53"
DESCRIPTION
This produces some simple patterns for network addresses. It produces private IP ranges and private MAC addresses. Patches welcome for additional features.
GENERATORS
ipv4
Return a random IP address within
127.0.0.0/8
, excluding .0 and .255cidr
Return a random CIDR starting with
127.
like127.0.42.0/24
macaddr
Return a random ethernet MAC in XX:XX:XX:XX:XX:XX format, taken from the Locally Administered Address Ranges.
AUTHOR
Michael Conrad <mike@nrdvana.net>
VERSION
version 0.03
COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Mock::Data, copy and paste the appropriate command in to your terminal.
cpanm Mock::Data
perl -MCPAN -e shell install Mock::Data
For more information on module installation, please visit the detailed CPAN module installation guide.