Added support for iterating over diagram elements from inja templates (fixes #54)

This commit is contained in:
Bartek Kryza
2022-09-15 23:36:29 +02:00
parent 693a09e20d
commit 17db587426
20 changed files with 115 additions and 20 deletions

View File

@@ -242,16 +242,17 @@ using namespace clanguml::test::matchers;
#include "t00047/test_case.h"
#include "t00048/test_case.h"
#include "t00049/test_case.h"
#include "t00050/test_case.h"
////
//// Sequence diagram tests
////
///
/// Sequence diagram tests
///
#include "t20001/test_case.h"
#include "t20002/test_case.h"
////
//// Package diagram tests
////
///
/// Package diagram tests
///
#include "t30001/test_case.h"
#include "t30002/test_case.h"
#include "t30003/test_case.h"
@@ -261,21 +262,21 @@ using namespace clanguml::test::matchers;
#include "t30007/test_case.h"
#include "t30008/test_case.h"
////
//// Include diagram tests
////
///
/// Include diagram tests
///
#include "t40001/test_case.h"
#include "t40002/test_case.h"
#include "t40003/test_case.h"
////
//// Other tests (e.g. configuration file)
////
///
/// Other tests (e.g. configuration file)
///
#include "t90000/test_case.h"
//
// Main test function
//
///
/// Main test function
///
int main(int argc, char *argv[])
{
Catch::Session session;

View File

@@ -367,7 +367,7 @@ ContainsMatcher IsLayoutHint(std::string const &from, std::string const &hint,
}
ContainsMatcher HasNote(std::string const &cls, std::string const &position,
std::string const &note,
std::string const &note = "",
CaseSensitive::Choice caseSensitivity = CaseSensitive::Yes)
{
return ContainsMatcher(CasedString(

View File

@@ -144,6 +144,9 @@ test_cases:
- name: t00049
title: Test case configurable type aliases
description:
- name: t00050
title: Test case for generating notes from comments using jinja templates
description:
Sequence diagrams:
- name: t20001
title: Basic sequence diagram test case