[#BloombergLP-bsls-ProtocolTest-testNoDataMembers] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/ProtocolTest.adoc[ProtocolTest]::testNoDataMembers :relfileprefix: ../../../ :mrdocs: Return whether the protocol class being tested contains no data fields. == Synopsis Declared in `<bsls_protocoltest.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool testNoDataMembers(); ---- == Description Return `true` (i.e., the test passed) if the protocol class being tested contains no data fields and return `false` (i.e., the test failed) otherwise. Increase the count of `failures` and set `lastStatus` to `false` on failure. == Return Value `true` if the protocol has no data members; `false` otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#