MCPcopy Create free account
hub / github.com/defold/defold / TEST

Function TEST

engine/dlib/src/test/test_uri.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "dlib/path.h"
22
23TEST(dmURI, TestEmpty)
24{
25 dmURI::Parts* uri_parts = new dmURI::Parts();
26 dmURI::Result r;
27 r = dmURI::Parse("", uri_parts);
28 ASSERT_EQ(dmURI::RESULT_OK, r);
29 ASSERT_STREQ("file", uri_parts->m_Scheme);
30 ASSERT_STREQ("", uri_parts->m_Location);
31 ASSERT_EQ(-1, uri_parts->m_Port);
32 ASSERT_STREQ("", uri_parts->m_Path);
33 delete uri_parts;
34}
35
36TEST(dmURI, TestAssumeFile1)
37{

Callers

nothing calls this directly

Calls 5

mallocFunction · 0.85
freeFunction · 0.85
EncodeFunction · 0.85
ParseFunction · 0.50
DecodeFunction · 0.50

Tested by

no test coverage detected