MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / setLoadMethod

Method setLoadMethod

features/support/env.js:130–141  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

128 }
129
130 setLoadMethod(method) {
131 if (method === 'datastore') {
132 this.osrmLoader = new OSRMDatastoreLoader(this);
133 } else if (method === 'directly') {
134 this.osrmLoader = new OSRMDirectLoader(this);
135 } else if (method === 'mmap') {
136 this.osrmLoader = new OSRMmmapLoader(this);
137 } else {
138 this.osrmLoader = null;
139 throw new Error(`No such data load method: ${method}`);
140 }
141 }
142
143 getProfilePath(profile) {
144 return path.join(wp.profilesPath, `${profile}.lua`);

Callers 1

beforeAllMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected