Documentation
¶
Overview ¶
Example ¶
package main import ( "fmt" "github.com/palantir/godel/apps/gunit/config" ) func main() { yml := ` tags: integration: names: - "integration_tests" paths: - "test" ` cfg, err := config.LoadRawConfig(yml, "") if err != nil { panic(err) } fmt.Printf("%q", fmt.Sprintf("%+v", cfg)) }
Output: "{Tags:map[integration:{Names:[integration_tests] Paths:[test]}] Exclude:{Names:[] Paths:[]}}"
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GUnit ¶
type GUnit struct { // Tags group tests into different sets. The key is the name of the tag and the value is a matcher.NamesPathsCfg // that specifies the rules for matching the tests that are part of the tag. Any test that matches the provided // matcher is considered part of the tag. Tags map[string]matcher.NamesPathsCfg `yaml:"tags" json:"tags"` // Exclude specifies the files that should be excluded from tests. Exclude matcher.NamesPathsCfg `yaml:"exclude" json:"exclude"` }
func LoadRawConfig ¶
Click to show internal directories.
Click to hide internal directories.