codecgen.go 511 B

1234567891011121314151617
  1. // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved.
  2. // Use of this source code is governed by a MIT license found in the LICENSE file.
  3. //go:build codecgen || generated
  4. // +build codecgen generated
  5. package codec
  6. // this file sets the codecgen variable to true
  7. // when the build tag codecgen is set.
  8. //
  9. // some tests depend on knowing whether in the context of codecgen or not.
  10. // For example, some tests should be skipped during codecgen e.g. missing fields tests.
  11. func init() {
  12. codecgen = true
  13. }