chromium/third_party/dawn/src/tint/lang/core/intrinsic/table_test.cc

// Copyright 2021 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "src/tint/lang/core/intrinsic/table.h"

#include <utility>

#include "gmock/gmock.h"
#include "src/tint/lang/core/intrinsic/dialect.h"
#include "src/tint/lang/core/intrinsic/table_data.h"
#include "src/tint/lang/core/type/atomic.h"
#include "src/tint/lang/core/type/depth_multisampled_texture.h"
#include "src/tint/lang/core/type/depth_texture.h"
#include "src/tint/lang/core/type/external_texture.h"
#include "src/tint/lang/core/type/helper_test.h"
#include "src/tint/lang/core/type/multisampled_texture.h"
#include "src/tint/lang/core/type/sampled_texture.h"
#include "src/tint/lang/core/type/storage_texture.h"
#include "src/tint/lang/core/type/texture_dimension.h"
#include "src/tint/utils/containers/vector.h"

namespace tint::core::intrinsic {
namespace {

HasSubstr;

class CoreIntrinsicTableTest : public testing::Test, public ProgramBuilder {};

TEST_F(CoreIntrinsicTableTest, MatchF32) {}

TEST_F(CoreIntrinsicTableTest, MismatchF32) {}

TEST_F(CoreIntrinsicTableTest, MatchU32) {}

TEST_F(CoreIntrinsicTableTest, MismatchU32) {}

TEST_F(CoreIntrinsicTableTest, MatchI32) {}

TEST_F(CoreIntrinsicTableTest, MismatchI32) {}

TEST_F(CoreIntrinsicTableTest, MatchIU32AsI32) {}

TEST_F(CoreIntrinsicTableTest, MatchIU32AsU32) {}

TEST_F(CoreIntrinsicTableTest, MismatchIU32) {}

TEST_F(CoreIntrinsicTableTest, MatchFIU32AsI32) {}

TEST_F(CoreIntrinsicTableTest, MatchFIU32AsU32) {}

TEST_F(CoreIntrinsicTableTest, MatchFIU32AsF32) {}

TEST_F(CoreIntrinsicTableTest, MismatchFIU32) {}

TEST_F(CoreIntrinsicTableTest, MatchBool) {}

TEST_F(CoreIntrinsicTableTest, MismatchBool) {}

TEST_F(CoreIntrinsicTableTest, MatchPointer) {}

TEST_F(CoreIntrinsicTableTest, MismatchPointer) {}

TEST_F(CoreIntrinsicTableTest, MatchArray) {}

TEST_F(CoreIntrinsicTableTest, MismatchArray) {}

TEST_F(CoreIntrinsicTableTest, MatchSampler) {}

TEST_F(CoreIntrinsicTableTest, MismatchSampler) {}

TEST_F(CoreIntrinsicTableTest, MatchSampledTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchMultisampledTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchDepthTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchDepthMultisampledTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchExternalTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchWOStorageTexture) {}

TEST_F(CoreIntrinsicTableTest, MismatchTexture) {}

TEST_F(CoreIntrinsicTableTest, MatchTemplateType) {}

TEST_F(CoreIntrinsicTableTest, MismatchTemplateType) {}

TEST_F(CoreIntrinsicTableTest, MatchOpenSizeVector) {}

TEST_F(CoreIntrinsicTableTest, MismatchOpenSizeVector) {}

TEST_F(CoreIntrinsicTableTest, MatchOpenSizeMatrix) {}

TEST_F(CoreIntrinsicTableTest, MismatchOpenSizeMatrix) {}

TEST_F(CoreIntrinsicTableTest, MatchDifferentArgsElementType_Builtin_ConstantEval) {}

TEST_F(CoreIntrinsicTableTest, MatchDifferentArgsElementType_Builtin_RuntimeEval) {}

TEST_F(CoreIntrinsicTableTest, MatchDifferentArgsElementType_Binary_ConstantEval) {}

TEST_F(CoreIntrinsicTableTest, MatchDifferentArgsElementType_Binary_RuntimeEval) {}

TEST_F(CoreIntrinsicTableTest, OverloadOrderByNumberOfParameters) {}

TEST_F(CoreIntrinsicTableTest, OverloadOrderByMatchingParameter) {}

TEST_F(CoreIntrinsicTableTest, MatchUnaryOp) {}

TEST_F(CoreIntrinsicTableTest, MismatchUnaryOp) {}

TEST_F(CoreIntrinsicTableTest, MatchUnaryOp_Constant) {}

TEST_F(CoreIntrinsicTableTest, MatchUnaryOp_Runtime) {}

TEST_F(CoreIntrinsicTableTest, MatchBinaryOp) {}

TEST_F(CoreIntrinsicTableTest, MismatchBinaryOp) {}

TEST_F(CoreIntrinsicTableTest, MatchCompoundOp) {}

TEST_F(CoreIntrinsicTableTest, MismatchCompoundOp) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeInitializer) {}

TEST_F(CoreIntrinsicTableTest, MismatchTypeInitializer) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeInitializer_ConstantEval) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeInitializer_RuntimeEval) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeConversion) {}

TEST_F(CoreIntrinsicTableTest, MismatchTypeConversion) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeConversion_ConstantEval) {}

TEST_F(CoreIntrinsicTableTest, MatchTypeConversion_RuntimeEval) {}

TEST_F(CoreIntrinsicTableTest, Err257Arguments) {}

TEST_F(CoreIntrinsicTableTest, MemberFunctionDoesNotMatchNonMemberFunction) {}

}  // namespace
}  // namespace tint::core::intrinsic