MCPcopy Index your code
hub / github.com/sitespeedio/sitespeed.io / validateMessageFormat

Function validateMessageFormat

lib/core/queueHandler.js:82–86  ·  view source on GitHub ↗

* Check some message format best practices that applies to sitespeed.io. * Throws an error if message doesn't follow the rules. * @param message the message to check

(message)

Source from the content-addressed store, hash-verified

80 * @param message the message to check
81 */
82function validateMessageFormat(message) {
83 validateTypeStructure(message);
84 validatePageSummary(message);
85 validateSummaryMessage(message);
86}
87
88export class QueueHandler {
89 constructor(options) {

Callers 1

postMessageMethod · 0.85

Calls 3

validateTypeStructureFunction · 0.85
validatePageSummaryFunction · 0.85
validateSummaryMessageFunction · 0.85

Tested by

no test coverage detected