chromium/third_party/dawn/src/tint/lang/wgsl/ast/function_test.cc

// Copyright 2020 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/fluent_types.h"
#include "src/tint/lang/wgsl/ast/discard_statement.h"
#include "src/tint/lang/wgsl/ast/helper_test.h"
#include "src/tint/lang/wgsl/ast/stage_attribute.h"
#include "src/tint/lang/wgsl/ast/workgroup_attribute.h"

usingnamespacetint::core::number_suffixes;  // NOLINT
usingnamespacetint::core::fluent_types;     // NOLINT

namespace tint::ast {
namespace {

FunctionTest;
FunctionDeathTest;

TEST_F(FunctionTest, Creation_i32ReturnType) {}

TEST_F(FunctionTest, Creation_NoReturnType) {}

TEST_F(FunctionTest, Creation_SingleParam) {}

TEST_F(FunctionTest, Creation_Body_Vector) {}

TEST_F(FunctionTest, Creation_Body_Block) {}

TEST_F(FunctionTest, Creation_Body_Stmt) {}

TEST_F(FunctionTest, Creation_Body_Nullptr) {}

TEST_F(FunctionTest, Creation_WithSource) {}

TEST_F(FunctionDeathTest, Assert_NullName) {}

TEST_F(FunctionDeathTest, Assert_TemplatedName) {}

TEST_F(FunctionDeathTest, Assert_NullParam) {}

TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Symbol) {}

TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Param) {}

TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_Attr) {}

TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_ReturnType) {}

TEST_F(FunctionDeathTest, Assert_DifferentGenerationID_ReturnAttr) {}

FunctionListTest;

TEST_F(FunctionListTest, FindSymbol) {}

TEST_F(FunctionListTest, FindSymbolMissing) {}

TEST_F(FunctionListTest, FindSymbolStage) {}

TEST_F(FunctionListTest, FindSymbolStageMissing) {}

TEST_F(FunctionListTest, HasStage) {}

}  // namespace
}  // namespace tint::ast