< Summary - Igor Pro Universal Testing Framework

Information
Class: tests.UnitTests.Utils.PathsTests
Assembly: Utils
File(s): /builds/mirror/igortest/tests/UnitTests/Utils/PathsTests.ipf
Tag: 74147b3
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 17
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
TEST_Utils_Paths#Test_GetDirPathOfFile()100%1100%

File(s)

/builds/mirror/igortest/tests/UnitTests/Utils/PathsTests.ipf

#LineLine coverage
 1#pragma rtGlobals=3
 2#pragma TextEncoding="UTF-8"
 3#pragma rtFunctionErrors=1
 4#pragma version=1.10
 5#pragma ModuleName=TEST_Utils_Paths
 6
 17static Function Test_GetDirPathOfFile()
 18  string result, expect
 9
 110  expect = "abc\\def\\"
 111  result = IUTF_Utils_Paths#GetDirPathOfFile("abc:def:ghi.exe")
 112  CHECK_EQUAL_STR(expect, result)
 13
 114  expect = ""
 115  result = IUTF_Utils_Paths#GetDirPathOfFile("foo.txt")
 116  CHECK_EQUAL_STR(expect, result)
 117End