MCPcopy Create free account
hub / github.com/KDE/kdevelop / templateIndexes

Method templateIndexes

kdevplatform/language/codegen/tests/test_templatesmodel.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void TestTemplatesModel::templateIndexes()
65{
66 QModelIndexList indexes = model->templateIndexes(QStringLiteral("test_yaml.tar.bz2"));
67 QCOMPARE(indexes.size(), 3);
68
69 QCOMPARE(model->data(indexes[0]).toString(), QStringLiteral("Testing"));
70 QCOMPARE(model->data(indexes[1]).toString(), QStringLiteral("YAML"));
71 QCOMPARE(model->data(indexes[2]).toString(), QStringLiteral("Testing YAML template"));
72}
73
74
75QTEST_GUILESS_MAIN(TestTemplatesModel)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected