File: test_output_multi_line_trivial.lua

package info (click to toggle)
osm2pgsql 0.96.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,304 kB
  • sloc: cpp: 11,462; python: 543; sh: 98; makefile: 17
file content (10 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
function drop_all (...)
  return 1, {}
end

-- A generic way to process ways, given a function which determines if tags are interesting
-- Takes an optional function to process tags. Always says it's a polygon if there's matching tags
function test_ways (kv, num_keys)
  tags = {["foo"] = "bar"}
  return 0, tags, 1, 0
end