Sha256: 020d3cd6d91f42e36c35ea46a593ccc851df2ddb05e78ccd64d5cefcdd7d095f

Contents?: true

Size: 607 Bytes

Versions: 2

Compression:

Stored size: 607 Bytes

Contents

#ifndef BANDIT_VALUEPROXY_H
#define BANDIT_VALUEPROXY_H

#include "MatchProxy.h"

namespace bandit { namespace Matchers {

    template<typename T>
    class ValueProxy
    {
    public:
        MatchProxy<T> to;
        MatchProxy<T> to_not;

        explicit ValueProxy(const char* filename, int lineNumber, const T& value) : to(*this), to_not(*this, true), _value(value), _filename(filename), _lineNumber(lineNumber) {}

    private:
        friend class MatchProxy<T>;

        const T&    _value;
        std::string _filename;
        int         _lineNumber;
    };
}}

#endif	// BANDIT_VALUEPROXY_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/ValueProxy.h
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/ValueProxy.h