MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / TEST

Function TEST

src/session/test/session_test.cpp:15–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13ACTOR_TEST_MINIMAL()
14
15TEST(SessionTest, Test) {
16 Session s{"test"};
17
18 EXPECT_EQ(s.name(), "test");
19
20 EXPECT_TRUE(s.empty());
21
22 s.set_media_rate(FrameRate(1.0 / 30.0));
23 EXPECT_EQ(s.media_rate().to_seconds(), FrameRate(1.0 / 30.0).to_seconds());
24
25 Session s2{s.serialise()};
26 EXPECT_EQ(s2.name(), "test");
27 EXPECT_TRUE(s2.empty());
28 EXPECT_EQ(s2.media_rate().to_seconds(), FrameRate(1.0 / 30.0).to_seconds());
29}

Callers

nothing calls this directly

Calls 7

to_secondsMethod · 0.80
FrameRateClass · 0.50
nameMethod · 0.45
emptyMethod · 0.45
set_media_rateMethod · 0.45
media_rateMethod · 0.45
serialiseMethod · 0.45

Tested by

no test coverage detected