Sha256: f2f8a58d8ba634b95d1031450e662e42c7d9302a87de3ddcb78a07bd3ec9bf1d

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

#ifndef BANDIT_BEEMPTY_H
#define BANDIT_BEEMPTY_H

#include "Matcher.h"

namespace bandit { namespace Matchers {

    class BeEmpty : public Matcher
    {
    private:
        // BeEmpty & operator=(const BeEmpty &);

    public:
        explicit BeEmpty() : Matcher() {}

        template<typename U>
        bool matches(const U& container) const
	{
	    return container.empty();
	}

    protected:
	std::string failure_message_end() const
	{
	    return std::string("be empty");
	}
    };

    static const BeEmpty be_empty = BeEmpty();
}}

#endif	// BANDIT_BEEMPTY_H

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeEmpty.h
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeEmpty.h