Code Coverage Unit Tests for comm.h (#1783)

* File containing test for comm.h

* Update CommTest.cpp

Added gtest API for assert

* Update CommTest.cpp

Adding copyright

* Update CommTest.cpp

Removing info and tested as not required.

* Update and rename CommTest.cpp to CommTests.cpp

* Update CMakeLists.txt

[ROCm/rccl commit: 6453273aa6]
이 커밋은 다음에 포함됨:
ishkool 작성하고 GitHub가 2025-08-15 17:44:24 -05:00를 커밋함
1 부모 ed4abedf7b
커밋 61a189bc84
2 파일이 변경됨
+29 -2

검색과 일치하는 파일 없음

+26
파일 보기
@@ -0,0 +1,26 @@
/*************************************************************************
* Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "gtest/gtest.h"
#include "comm.h"
namespace RcclUnitTesting
{
TEST(CommTests, Sorter)
{
// Configuration
ncclTaskCollSorter* me_ptr = new ncclTaskCollSorter;
me_ptr->head = nullptr;
ASSERT_EQ(ncclTaskCollSorterEmpty(me_ptr), true);
delete me_ptr;
}
}