< Summary - Igor Pro Universal Testing Framework

Information
Class: procedures.igortest-utils-textgrid
Assembly: procedures
File(s): /builds/mirror/igortest/procedures/igortest-utils-textgrid.ipf
Tag: 74147b3
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 29
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
IUTF_Utils_TextGrid#Create()100%2100%

File(s)

/builds/mirror/igortest/procedures/igortest-utils-textgrid.ipf

#LineLine coverage
 1#pragma rtGlobals=3
 2#pragma TextEncoding="UTF-8"
 3#pragma rtFunctionErrors=1
 4#pragma version=1.10
 5#pragma ModuleName=IUTF_Utils_TextGrid
 6
 7// TextGrid is a special case of a vector. A TextGrid is basically a 2 dimensional text wave. Each
 8// row is a single entry and the column has labels to define the values inside these entries.
 9
 10/// @brief Creates a TextGrid. The names and number of columns are determined by the header
 11/// parameter.
 4812static Function/WAVE Create(header)
 13  string header
 14
 4815  variable i
 4816  string   name
 4817  variable count = ItemsInList(header)
 18
 4819  Make/T/N=(IUTF_WAVECHUNK_SIZE, count)/FREE wv
 20
 4821  for(i = 0; i < count; i += 1)
 39322    name = StringFromList(i, header)
 39323    SetDimLabel UTF_COLUMN, i, $name, wv
 39324  endfor
 25
 4826  IUTF_Utils_Vector#SetLength(wv, 0)
 27
 4828  return wv
 4829End

Methods/Properties

IUTF_Utils_TextGrid#Create()