Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

stripCodeFence unti tests

Open Beginner friendly
#30 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
testing

Research direction

Read stripCodeFence in agent/normalize.go and the tests in agent/agent_test.go. Add unit cases for the listed fence forms and for valid unfenced input. Done when fenced inputs are stripped and the unfenced example passes through unchanged.

Written by the indexing model from the issue text.

Description

##What
Add unit tests specifically for the stripCodeFence function in agent/normalize.go.

##Where
Add the unit test into agent/agent_test.go

##Exhaustiveness
the test should cover all current catches by stripCodeFence and a proper input not getting caught
This may be expanded since the time of writing this but current includes:

Done when

those cases should get caught ie they get stripped while an example with out the code fence should pass through unedited ie:
{"name":"list_directory","arguments":{./}}

Dominant language
Go
Stars
1
Forks
2
Avg merge
16h 20m
Merged PRs (30d)
13

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Edwin-metcalf/MetCode

All issues in Edwin-metcalf/MetCode

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.