MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / make_flags

Method make_flags

tensorboard/program_test.py:112–119  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

110 pass
111
112 def make_flags(self, **kwargs):
113 flags = argparse.Namespace()
114 kwargs.setdefault("host", None)
115 kwargs.setdefault("bind_all", kwargs["host"] is None)
116 kwargs.setdefault("reuse_port", False)
117 for k, v in kwargs.items():
118 setattr(flags, k, v)
119 return flags
120
121 def testMakeServerBlankHost(self):
122 # Test that we can bind to all interfaces without throwing an error

Callers 3

testPathPrefixSlashMethod · 0.95
testSpecifiedHostMethod · 0.95

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected