Code owners
Assign users and groups as approvers for specific file changes. Learn more.
testGeoMaterial.cxx 405 B
/*
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
*/
#include "GeoModelKernel/GeoMaterial.h"
#include <gtest/gtest.h>
TEST(GeoMaterial, CanBeConstructedOnHeap) {
GeoMaterial * pG{};
const std::string name{"Shaun"};
const double dense{13.0};
EXPECT_NO_THROW(pG = new GeoMaterial(name, dense));//Shaun is dense
pG->ref();
pG->unref(); //should be destroyed here
}