27 lines · cpp
1//===-- SBLineEntryTest.cpp -------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===/8 9#include "gtest/gtest.h"10 11#include "lldb/API/LLDB.h"12 13TEST(SBLineEntryTest, SetLineAndColumn) {14 constexpr uint32_t expected_line_no = 40;15 constexpr uint32_t expected_column_no = 20;16 17 lldb::SBLineEntry line_entry{};18 line_entry.SetLine(expected_line_no);19 line_entry.SetColumn(expected_column_no);20 21 const uint32_t line_no = line_entry.GetLine();22 const uint32_t column_no = line_entry.GetColumn();23 24 EXPECT_EQ(line_no, line_no);25 EXPECT_EQ(column_no, expected_column_no);26}27