Skip to content

feat: add mocks for testing the llm function (#998)

Codecov / codecov/patch failed Jan 29, 2025 in 1s

26.70% of diff hit (target 46.89%)

View this Pull Request on Codecov

26.70% of diff hit (target 46.89%)

Annotations

Check warning on line 102 in cli/cli.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/cli.go#L97-L102

Added lines #L97 - L102 were not covered by tests

Check warning on line 112 in cli/cli.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/cli.go#L107-L112

Added lines #L107 - L112 were not covered by tests

Check warning on line 40 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L40

Added line #L40 was not covered by tests

Check warning on line 57 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L52-L57

Added lines #L52 - L57 were not covered by tests

Check warning on line 64 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L61-L64

Added lines #L61 - L64 were not covered by tests

Check warning on line 70 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L67-L70

Added lines #L67 - L70 were not covered by tests

Check warning on line 83 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L72-L83

Added lines #L72 - L83 were not covered by tests

Check warning on line 94 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L94

Added line #L94 was not covered by tests

Check warning on line 102 in cli/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/init.go#L101-L102

Added lines #L101 - L102 were not covered by tests

Check warning on line 20 in cli/serverless/exec/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/exec/serverless.go#L19-L20

Added lines #L19 - L20 were not covered by tests

Check warning on line 34 in cli/serverless/golang/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/golang/serverless.go#L33-L34

Added lines #L33 - L34 were not covered by tests

Check warning on line 160 in cli/serverless/nodejs/runtime.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/runtime.go#L147-L160

Added lines #L147 - L160 were not covered by tests

Check warning on line 173 in cli/serverless/nodejs/runtime.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/runtime.go#L164-L173

Added lines #L164 - L173 were not covered by tests

Check warning on line 180 in cli/serverless/nodejs/runtime.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/runtime.go#L175-L180

Added lines #L175 - L180 were not covered by tests

Check warning on line 27 in cli/serverless/nodejs/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/serverless.go#L23-L27

Added lines #L23 - L27 were not covered by tests

Check warning on line 38 in cli/serverless/nodejs/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/serverless.go#L29-L38

Added lines #L29 - L38 were not covered by tests

Check warning on line 44 in cli/serverless/nodejs/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/serverless.go#L41-L44

Added lines #L41 - L44 were not covered by tests

Check warning on line 46 in cli/serverless/nodejs/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/nodejs/serverless.go#L46

Added line #L46 was not covered by tests

Check warning on line 85 in cli/serverless/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/serverless.go#L77-L85

Added lines #L77 - L85 were not covered by tests

Check warning on line 87 in cli/serverless/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/serverless.go#L87

Added line #L87 was not covered by tests

Check warning on line 29 in cli/serverless/wasm/serverless.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/serverless/wasm/serverless.go#L28-L29

Added lines #L28 - L29 were not covered by tests

Check warning on line 38 in cli/template/template.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/template/template.go#L27-L38

Added lines #L27 - L38 were not covered by tests

Check warning on line 40 in cli/template/template.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/template/template.go#L40

Added line #L40 was not covered by tests

Check warning on line 46 in cli/template/template.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/template/template.go#L42-L46

Added lines #L42 - L46 were not covered by tests

Check warning on line 48 in cli/template/template.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cli/template/template.go#L48

Added line #L48 was not covered by tests