Documentation
¶
Overview ¶
Package fixture builds fake WordPress/WooCommerce, Magento 2 and Laravel databases for tests, and a generic one no preset knows. All data is invented: names from short lists, streets and cities mixed at random, phone numbers in the 555-01xx range reserved for fiction, IP addresses from the documentation ranges. Secret-looking strings are assembled at run time so that none sits in the repository.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Platforms = []string{"wordpress", "magento2", "laravel", "generic"}
Platforms lists the fixtures Build can make.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Canary is placed inside several stored values. Reports must never
// contain it.
Canary string
// Planted, when set, receives the secrets the fixture plants, for leak
// tests. It stays in memory.
Planted *Planted
}
Options for Build.
Click to show internal directories.
Click to hide internal directories.