summaryrefslogtreecommitdiff
path: root/testcase.go
blob: 02db738fbf88e7e2ab2b6547b35be906bee1a468 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package planr

type TestResult struct {
  Pass bool
}

type TestCase struct {
  Path   string
  Cname  string
  Config TestCaseConfig
}

func (tc TestCase) ContainsAdapter(name string) bool {
  for adapter := range tc.Config.adapters_ {
    if adapter == name {
      return true;
    }
  }

  return false;
}