chromium/third_party/dawn/src/tint/lang/wgsl/reader/parser/statement_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/wgsl/ast/break_statement.h"
#include "src/tint/lang/wgsl/ast/continue_statement.h"
#include "src/tint/lang/wgsl/ast/discard_statement.h"
#include "src/tint/lang/wgsl/reader/parser/helper_test.h"

namespace tint::wgsl::reader {
namespace {

TEST_F(WGSLParserTest, Statement) {}

TEST_F(WGSLParserTest, Statement_Semicolon) {}

TEST_F(WGSLParserTest, Statement_Return_NoValue) {}

TEST_F(WGSLParserTest, Statement_Return_Value) {}

TEST_F(WGSLParserTest, Statement_Return_MissingSemi) {}

TEST_F(WGSLParserTest, Statement_Return_Invalid) {}

TEST_F(WGSLParserTest, Statement_If) {}

TEST_F(WGSLParserTest, Statement_If_Invalid) {}

TEST_F(WGSLParserTest, Statement_Variable) {}

TEST_F(WGSLParserTest, Statement_Variable_Invalid) {}

TEST_F(WGSLParserTest, Statement_Variable_MissingSemicolon) {}

TEST_F(WGSLParserTest, Statement_Switch) {}

TEST_F(WGSLParserTest, Statement_Switch_Invalid) {}

TEST_F(WGSLParserTest, Statement_Loop) {}

TEST_F(WGSLParserTest, Statement_Loop_Invalid) {}

TEST_F(WGSLParserTest, Statement_Assignment) {}

TEST_F(WGSLParserTest, Statement_Assignment_Invalid) {}

TEST_F(WGSLParserTest, Statement_Assignment_MissingSemicolon) {}

TEST_F(WGSLParserTest, Statement_Break) {}

TEST_F(WGSLParserTest, Statement_Break_MissingSemicolon) {}

TEST_F(WGSLParserTest, Statement_Continue) {}

TEST_F(WGSLParserTest, Statement_Continue_MissingSemicolon) {}

TEST_F(WGSLParserTest, Statement_Discard) {}

TEST_F(WGSLParserTest, Statement_Discard_MissingSemicolon) {}

TEST_F(WGSLParserTest, Statement_Body) {}

TEST_F(WGSLParserTest, Statement_Body_Invalid) {}

TEST_F(WGSLParserTest, Statement_ConstAssert_WithParen) {}

TEST_F(WGSLParserTest, Statement_ConstAssert_WithoutParen) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_Block) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_For) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_If) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_Loop) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_Switch) {}

TEST_F(WGSLParserTest, Statement_ConsumedAttributes_While) {}

TEST_F(WGSLParserTest, Statement_UnexpectedAttributes) {}

}  // namespace
}  // namespace tint::wgsl::reader