mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
mock datastore tests (#562)
This commit is contained in:
committed by
Travis Reeder
parent
947fedb194
commit
17e18d872b
@@ -125,6 +125,14 @@ func (r *Route) Validate() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *Route) Clone() *Route {
|
||||
var clone Route
|
||||
clone.AppName = r.AppName
|
||||
clone.Path = r.Path
|
||||
clone.Update(r)
|
||||
return &clone
|
||||
}
|
||||
|
||||
// Update updates fields in r with non-zero field values from new.
|
||||
// 0-length slice Header values, and empty-string Config values trigger removal of map entry.
|
||||
func (r *Route) Update(new *Route) {
|
||||
|
||||
Reference in New Issue
Block a user