ClientUtils.EnforcedJourneys (client_utils v0.6.15)

View Source

Which journeys are enforced: those with a line in .code_my_spec/journeys/ENFORCED, each <slug> <signature>. The CodeMySpec server signs a journey's line when the journey is handed in. Anyone can read and check a line here, with no call to the server; only the server holds the private key, so no commit can make one. A journey not on the list is planned: its file may sit on main, with no walk, while it is written.

Each line is signed by itself, so a merge keeps both sides' lines. A line no trusted key signed is an error, never skipped.

A story's criteria are enforced the same way: .code_my_spec/stories/ENFORCED holds <scenario id> <signature> lines, signed when the story is handed in (criteria/1).

Summary

Functions

The scenario ids the signed list in stories (the stories' folder) names; none when it has no list.

The slugs the signed list in journeys (the journeys' folder) names; none when it has no list.

Functions

criteria(stories \\ ".code_my_spec/stories")

@spec criteria(String.t()) :: MapSet.t(String.t())

The scenario ids the signed list in stories (the stories' folder) names; none when it has no list.

slugs(journeys \\ ".code_my_spec/journeys")

@spec slugs(String.t()) :: MapSet.t(String.t())

The slugs the signed list in journeys (the journeys' folder) names; none when it has no list.