Skip to content

Latest commit

 

History

History
89 lines (77 loc) · 1.91 KB

tips.mdx

File metadata and controls

89 lines (77 loc) · 1.91 KB

import { Appear } from 'mdx-deck'

Tips and trick


Custom Template generator

Copy all files from gotest-template to /path/to/template_dir

Add go.generateTestsFlags to the settings.json.

"go.generateTestsFlags": ["-template_dir", "/path/to/template_dir"]


Utilize build tags for testing


import { CodeSurferLayout, CodeSurferColumnLayout, Code, Step, } from "code-surfer";


Mock non interface stdlib



Test related with file generation