/{{cookiecutter.project_slug}}/internal/cli/command/command_suite_test.go

https://bitbucket.org/greenguavalabs/cookiecutter-go · Go · 120 lines · 110 code · 7 blank · 3 comment · 0 complexity · f70403dda24dc83105a49228ae98ae90 MD5 · raw file

  1. package command_test
  2. import (
  3. "testing"
  4. "github.com/onsi/ginkgo"
  5. "github.com/onsi/gomega"
  6. )
  7. func TestSuiteCommand(t *testing.T) {
  8. RegisterFailHandler(Fail)
  9. RunSpecs(t, "Command Suite")
  10. }
  11. // Declarations for Ginkgo DSL
  12. type Done ginkgo.Done
  13. type Benchmarker ginkgo.Benchmarker
  14. var GinkgoWriter = ginkgo.GinkgoWriter
  15. var GinkgoRandomSeed = ginkgo.GinkgoRandomSeed
  16. var GinkgoParallelNode = ginkgo.GinkgoParallelNode
  17. var GinkgoT = ginkgo.GinkgoT
  18. var CurrentGinkgoTestDescription = ginkgo.CurrentGinkgoTestDescription
  19. var RunSpecs = ginkgo.RunSpecs
  20. var RunSpecsWithDefaultAndCustomReporters = ginkgo.RunSpecsWithDefaultAndCustomReporters
  21. var RunSpecsWithCustomReporters = ginkgo.RunSpecsWithCustomReporters
  22. var Skip = ginkgo.Skip
  23. var Fail = ginkgo.Fail
  24. var GinkgoRecover = ginkgo.GinkgoRecover
  25. var Describe = ginkgo.Describe
  26. var FDescribe = ginkgo.FDescribe
  27. var PDescribe = ginkgo.PDescribe
  28. var XDescribe = ginkgo.XDescribe
  29. var Context = ginkgo.Context
  30. var FContext = ginkgo.FContext
  31. var PContext = ginkgo.PContext
  32. var XContext = ginkgo.XContext
  33. var When = ginkgo.When
  34. var FWhen = ginkgo.FWhen
  35. var PWhen = ginkgo.PWhen
  36. var XWhen = ginkgo.XWhen
  37. var It = ginkgo.It
  38. var FIt = ginkgo.FIt
  39. var PIt = ginkgo.PIt
  40. var XIt = ginkgo.XIt
  41. var Specify = ginkgo.Specify
  42. var FSpecify = ginkgo.FSpecify
  43. var PSpecify = ginkgo.PSpecify
  44. var XSpecify = ginkgo.XSpecify
  45. var By = ginkgo.By
  46. var Measure = ginkgo.Measure
  47. var FMeasure = ginkgo.FMeasure
  48. var PMeasure = ginkgo.PMeasure
  49. var XMeasure = ginkgo.XMeasure
  50. var BeforeSuite = ginkgo.BeforeSuite
  51. var AfterSuite = ginkgo.AfterSuite
  52. var SynchronizedBeforeSuite = ginkgo.SynchronizedBeforeSuite
  53. var SynchronizedAfterSuite = ginkgo.SynchronizedAfterSuite
  54. var BeforeEach = ginkgo.BeforeEach
  55. var JustBeforeEach = ginkgo.JustBeforeEach
  56. var AfterEach = ginkgo.AfterEach
  57. // Declarations for Gomega DSL
  58. var RegisterFailHandler = gomega.RegisterFailHandler
  59. var RegisterTestingT = gomega.RegisterTestingT
  60. var InterceptGomegaFailures = gomega.InterceptGomegaFailures
  61. var Ω = gomega.Ω
  62. var Expect = gomega.Expect
  63. var ExpectWithOffset = gomega.ExpectWithOffset
  64. var Eventually = gomega.Eventually
  65. var EventuallyWithOffset = gomega.EventuallyWithOffset
  66. var Consistently = gomega.Consistently
  67. var ConsistentlyWithOffset = gomega.ConsistentlyWithOffset
  68. var SetDefaultEventuallyTimeout = gomega.SetDefaultEventuallyTimeout
  69. var SetDefaultEventuallyPollingInterval = gomega.SetDefaultEventuallyPollingInterval
  70. var SetDefaultConsistentlyDuration = gomega.SetDefaultConsistentlyDuration
  71. var SetDefaultConsistentlyPollingInterval = gomega.SetDefaultConsistentlyPollingInterval
  72. var NewGomegaWithT = gomega.NewGomegaWithT
  73. // Declarations for Gomega Matchers
  74. var Equal = gomega.Equal
  75. var BeEquivalentTo = gomega.BeEquivalentTo
  76. var BeIdenticalTo = gomega.BeIdenticalTo
  77. var BeNil = gomega.BeNil
  78. var BeTrue = gomega.BeTrue
  79. var BeFalse = gomega.BeFalse
  80. var HaveOccurred = gomega.HaveOccurred
  81. var Succeed = gomega.Succeed
  82. var MatchError = gomega.MatchError
  83. var BeClosed = gomega.BeClosed
  84. var Receive = gomega.Receive
  85. var BeSent = gomega.BeSent
  86. var MatchRegexp = gomega.MatchRegexp
  87. var ContainSubstring = gomega.ContainSubstring
  88. var HavePrefix = gomega.HavePrefix
  89. var HaveSuffix = gomega.HaveSuffix
  90. var MatchJSON = gomega.MatchJSON
  91. var MatchXML = gomega.MatchXML
  92. var MatchYAML = gomega.MatchYAML
  93. var BeEmpty = gomega.BeEmpty
  94. var HaveLen = gomega.HaveLen
  95. var HaveCap = gomega.HaveCap
  96. var BeZero = gomega.BeZero
  97. var ContainElement = gomega.ContainElement
  98. var ConsistOf = gomega.ConsistOf
  99. var HaveKey = gomega.HaveKey
  100. var HaveKeyWithValue = gomega.HaveKeyWithValue
  101. var BeNumerically = gomega.BeNumerically
  102. var BeTemporally = gomega.BeTemporally
  103. var BeAssignableToTypeOf = gomega.BeAssignableToTypeOf
  104. var Panic = gomega.Panic
  105. var BeAnExistingFile = gomega.BeAnExistingFile
  106. var BeARegularFile = gomega.BeARegularFile
  107. var BeADirectory = gomega.BeADirectory
  108. var And = gomega.And
  109. var SatisfyAll = gomega.SatisfyAll
  110. var Or = gomega.Or
  111. var SatisfyAny = gomega.SatisfyAny
  112. var Not = gomega.Not
  113. var WithTransform = gomega.WithTransform