Skip to content

Commit 3bcf58d

Browse files
committed
fix: correct spelling of ScopedFeatureContext in ContextManager and related files
1 parent e86aee7 commit 3bcf58d

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

cucumber_cpp/library/engine/ContextManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ namespace cucumber_cpp::library::engine
7777
{
7878
}
7979

80-
ContextManager::ScopedFeautureContext::ScopedFeautureContext(ContextManager& contextManager)
80+
ContextManager::ScopedFeatureContext::ScopedFeatureContext(ContextManager& contextManager)
8181
: contextManager{ contextManager }
8282
{}
8383

84-
ContextManager::ScopedFeautureContext::~ScopedFeautureContext()
84+
ContextManager::ScopedFeatureContext::~ScopedFeatureContext()
8585
{
8686
contextManager.DisposeFeatureContext();
8787
}
@@ -129,12 +129,12 @@ namespace cucumber_cpp::library::engine
129129
return *programContext;
130130
}
131131

132-
ContextManager::ScopedFeautureContext ContextManager::CreateFeatureContext(const FeatureInfo& featureInfo)
132+
ContextManager::ScopedFeatureContext ContextManager::CreateFeatureContext(const FeatureInfo& featureInfo)
133133
{
134134
featureContext = std::make_shared<decltype(featureContext)::element_type>(*programContext, featureInfo);
135135
runnerContext.push(featureContext);
136136

137-
return ScopedFeautureContext{ *this };
137+
return ScopedFeatureContext{ *this };
138138
}
139139

140140
void ContextManager::DisposeFeatureContext()

cucumber_cpp/library/engine/ContextManager.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ namespace cucumber_cpp::library::engine
7474
cucumber_cpp::library::engine::ProgramContext& ProgramContext();
7575
[[nodiscard]] cucumber_cpp::library::engine::ProgramContext& ProgramContext() const;
7676

77-
struct ScopedFeautureContext;
77+
struct ScopedFeatureContext;
7878
struct ScopedRuleContext;
7979
struct ScopedScenarioContext;
8080
struct ScopedStepContext;
8181

82-
[[nodiscard]] ScopedFeautureContext CreateFeatureContext(const FeatureInfo& featureInfo);
82+
[[nodiscard]] ScopedFeatureContext CreateFeatureContext(const FeatureInfo& featureInfo);
8383
cucumber_cpp::library::engine::FeatureContext& FeatureContext();
8484

8585
[[nodiscard]] ScopedRuleContext CreateRuleContext(const RuleInfo& ruleInfo);
@@ -109,10 +109,10 @@ namespace cucumber_cpp::library::engine
109109
std::stack<std::shared_ptr<cucumber_cpp::library::engine::StepContext>> stepContext;
110110
};
111111

112-
struct ContextManager::ScopedFeautureContext : library::util::Immoveable
112+
struct ContextManager::ScopedFeatureContext : library::util::Immoveable
113113
{
114-
explicit ScopedFeautureContext(ContextManager& contextManager);
115-
~ScopedFeautureContext();
114+
explicit ScopedFeatureContext(ContextManager& contextManager);
115+
~ScopedFeatureContext();
116116

117117
private:
118118
ContextManager& contextManager;

cucumber_cpp/library/engine/TestExecution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace cucumber_cpp::library::engine
5151
FeatureScope(cucumber_cpp::library::engine::ContextManager& contextManager, report::ReportForwarder& reportHandler, HookExecutor& hookExecution, const cucumber_cpp::library::engine::FeatureInfo& featureInfo);
5252

5353
private:
54-
cucumber_cpp::library::engine::ContextManager::ScopedFeautureContext scopedFeatureContext;
54+
cucumber_cpp::library::engine::ContextManager::ScopedFeatureContext scopedFeatureContext;
5555
report::ReportForwarder::FeatureScope scopedFeatureReport;
5656
HookExecutor::FeatureScope scopedFeatureHook;
5757
};

cucumber_cpp/library/engine/test_helper/ContextManagerInstance.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace cucumber_cpp::library::engine::test_helper
3131
cucumber_cpp::library::engine::ScenarioInfo scenario{ rule, {}, {}, {}, {}, {} };
3232
cucumber_cpp::library::engine::StepInfo step{ scenario, {}, {}, {}, {}, {} };
3333

34-
ContextManager::ScopedFeautureContext featureContextScope{ CreateFeatureContext(feature) };
34+
ContextManager::ScopedFeatureContext featureContextScope{ CreateFeatureContext(feature) };
3535
ContextManager::ScopedRuleContext ruleContextScope{ CreateRuleContext(rule) };
3636
ContextManager::ScopedScenarioContext scenarioContextScope{ CreateScenarioContext(scenario) };
3737
ContextManager::ScopedStepContext stepContextScope{ CreateStepContext(step) };

0 commit comments

Comments
 (0)