File: README.md

package info (click to toggle)
libcarp-assert-more-perl 1.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 244 kB
  • sloc: perl: 1,175; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Carp::Assert::More

[![Build Status](https://travis-ci.org/petdance/carp-assert-more.svg?branch=dev)](https://travis-ci.org/petdance/carp-assert-more)

Carp::Assert::More is a set of handy assertion functions for Perl.

For example, instead of writing

    assert( defined($foo), '$foo cannot be undefined' );
    assert( $foo ne '', '$foo cannot be blank' );

you can write

    assert_nonblank( $foo, '$foo cannot be blank' );